prefer_initializing_formals (#8797)

This commit is contained in:
Alexandre Ardhuin
2017-03-15 18:30:55 +01:00
committed by GitHub
parent f8238185cc
commit a9ba0e2f88
27 changed files with 66 additions and 97 deletions

View File

@@ -393,10 +393,9 @@ class _RectangleDemoState extends State<_RectangleDemo> {
typedef Widget _DemoBuilder(_ArcDemo demo);
class _ArcDemo {
_ArcDemo(String _title, this.builder, TickerProvider vsync)
: title = _title,
controller = new AnimationController(duration: const Duration(milliseconds: 500), vsync: vsync),
key = new GlobalKey(debugLabel: _title);
_ArcDemo(this.title, this.builder, TickerProvider vsync)
: controller = new AnimationController(duration: const Duration(milliseconds: 500), vsync: vsync),
key = new GlobalKey(debugLabel: title);
final String title;
final _DemoBuilder builder;