implicit-casts:false in dev (#45787)
This commit is contained in:
committed by
GitHub
parent
fa0c49d775
commit
ec1a015045
@@ -278,7 +278,7 @@ class AnimatedBezierState extends State<AnimatedBezier>
|
||||
|
||||
//From http://wiki.roblox.com/index.php?title=File:Beziereq4.png
|
||||
double _getCubicPoint(double t, double p0, double p1, double p2, double p3) {
|
||||
return pow(1 - t, 3) * p0 +
|
||||
return (pow(1 - t, 3) as double) * p0 +
|
||||
3 * pow(1 - t, 2) * t * p1 +
|
||||
3 * (1 - t) * pow(t, 2) * p2 +
|
||||
pow(t, 3) * p3;
|
||||
|
||||
@@ -19,7 +19,7 @@ Future<void> main() async {
|
||||
|
||||
// We control the framePolicy below to prevent us from scheduling frames in
|
||||
// the engine, so that the engine does not interfere with our timings.
|
||||
final LiveTestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized();
|
||||
final LiveTestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized() as LiveTestWidgetsFlutterBinding;
|
||||
|
||||
final Stopwatch watch = Stopwatch();
|
||||
int iterations = 0;
|
||||
|
||||
@@ -20,7 +20,7 @@ Future<void> main() async {
|
||||
|
||||
// We control the framePolicy below to prevent us from scheduling frames in
|
||||
// the engine, so that the engine does not interfere with our timings.
|
||||
final LiveTestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized();
|
||||
final LiveTestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized() as LiveTestWidgetsFlutterBinding;
|
||||
|
||||
final Stopwatch watch = Stopwatch();
|
||||
int iterations = 0;
|
||||
|
||||
Reference in New Issue
Block a user