1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-25 17:06:44 +00:00

Add use_super_parameters lint (#1269)

This commit is contained in:
Brett Morgan
2022-05-17 02:53:27 -07:00
committed by GitHub
parent 58bc5d7a58
commit 3a0a652984
33 changed files with 90 additions and 100 deletions

View File

@@ -32,8 +32,7 @@ class Rendering extends StatefulWidget {
this.onTick,
this.startTime = Duration.zero,
this.startTimeSimulationTicks = 20,
Key? key})
: super(key: key);
super.key});
@override
State<Rendering> createState() => _RenderingState();
@@ -323,7 +322,7 @@ class ControlledAnimation<T> extends StatefulWidget {
this.child,
this.animationControllerStatusListener,
this.startPosition = 0.0,
Key? key})
super.key})
: assert(
(builderWithChild != null && child != null && builder == null) ||
(builder != null && builderWithChild == null && child == null),
@@ -332,8 +331,7 @@ class ControlledAnimation<T> extends StatefulWidget {
assert(
startPosition >= 0 && startPosition <= 1,
"The property startPosition "
"must have a value between 0.0 and 1.0."),
super(key: key);
"must have a value between 0.0 and 1.0.");
@override
State<ControlledAnimation> createState() => _ControlledAnimationState<T>();