Enable unreachable_from_main lint - it is stable now!!1 (#129854)
PLUS: clean-up of all the unreachable stuff.
This commit is contained in:
committed by
GitHub
parent
99cb18b1a8
commit
55b6f049a6
@@ -12,9 +12,10 @@ const int _kNumWarmUp = 100;
|
||||
class Data {
|
||||
Data(this.value);
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{ 'value': value };
|
||||
|
||||
final int value;
|
||||
|
||||
@override
|
||||
String toString() => 'Data($value)';
|
||||
}
|
||||
|
||||
List<Data> test(int length) {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart' show timeDilation;
|
||||
|
||||
void main() {
|
||||
runApp(
|
||||
@@ -31,12 +30,6 @@ class PlatformViewAppState extends State<PlatformViewApp> {
|
||||
home: const PlatformViewLayout(),
|
||||
);
|
||||
}
|
||||
|
||||
void toggleAnimationSpeed() {
|
||||
setState(() {
|
||||
timeDilation = (timeDilation != 1.0) ? 1.0 : 5.0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class PlatformViewLayout extends StatelessWidget {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart' show timeDilation;
|
||||
|
||||
void main() {
|
||||
runApp(
|
||||
@@ -31,12 +30,6 @@ class PlatformViewAppState extends State<PlatformViewApp> {
|
||||
home: const PlatformViewLayout(),
|
||||
);
|
||||
}
|
||||
|
||||
void toggleAnimationSpeed() {
|
||||
setState(() {
|
||||
timeDilation = (timeDilation != 1.0) ? 1.0 : 5.0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class PlatformViewLayout extends StatelessWidget {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart' show timeDilation;
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
|
||||
import 'android_platform_view.dart';
|
||||
@@ -35,12 +34,6 @@ class PlatformViewAppState extends State<PlatformViewApp> {
|
||||
home: const PlatformViewLayout(),
|
||||
);
|
||||
}
|
||||
|
||||
void toggleAnimationSpeed() {
|
||||
setState(() {
|
||||
timeDilation = (timeDilation != 1.0) ? 1.0 : 5.0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class PlatformViewLayout extends StatelessWidget {
|
||||
|
||||
Reference in New Issue
Block a user