enable lint prefer_generic_function_type_aliases (#21680)
This commit is contained in:
committed by
GitHub
parent
6c3adcf60f
commit
a07d3719a1
@@ -10,8 +10,8 @@ enum _Location {
|
||||
Bermuda
|
||||
}
|
||||
|
||||
typedef Widget DemoItemBodyBuilder<T>(DemoItem<T> item);
|
||||
typedef String ValueToString<T>(T value);
|
||||
typedef DemoItemBodyBuilder<T> = Widget Function(DemoItem<T> item);
|
||||
typedef ValueToString<T> = String Function(T value);
|
||||
|
||||
class DualHeaderWithHint extends StatelessWidget {
|
||||
const DualHeaderWithHint({
|
||||
|
||||
@@ -10,7 +10,7 @@ enum GridDemoTileStyle {
|
||||
twoLine
|
||||
}
|
||||
|
||||
typedef void BannerTapCallback(Photo photo);
|
||||
typedef BannerTapCallback = void Function(Photo photo);
|
||||
|
||||
const double _kMinFlingVelocity = 800.0;
|
||||
const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
typedef Future<String> UpdateUrlFetcher();
|
||||
typedef UpdateUrlFetcher = Future<String> Function();
|
||||
|
||||
class Updater extends StatefulWidget {
|
||||
const Updater({ @required this.updateUrlFetcher, this.child, Key key })
|
||||
|
||||
Reference in New Issue
Block a user