Revert "Update typedef syntax to use Function notation and turn on lint for old notation. (#18035)" (#18041)

This reverts commit 3258602073.
This commit is contained in:
Greg Spencer
2018-05-30 13:51:14 -07:00
committed by GitHub
parent 3258602073
commit b921fdc58e
129 changed files with 213 additions and 218 deletions

View File

@@ -9,8 +9,8 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
typedef OnProgressListener = void Function(double completed, double total);
typedef OnResultListener = void Function(String result);
typedef void OnProgressListener(double completed, double total);
typedef void OnResultListener(String result);
// An encapsulation of a large amount of synchronous processing.
//

View File

@@ -4,7 +4,7 @@
import 'package:flutter/material.dart';
typedef _TextTransformer = Widget Function(String name, String text);
typedef Widget _TextTransformer(String name, String text);
// From https://en.wikiquote.org/wiki/2001:_A_Space_Odyssey_(film)
const String _kDialogText = '''