re-re-enable lint unnecessary_const (#20103)
This commit is contained in:
committed by
GitHub
parent
ffbaa97b50
commit
eda03e2586
@@ -7,7 +7,7 @@ import 'package:meta/meta.dart';
|
||||
import 'error.dart';
|
||||
import 'message.dart';
|
||||
|
||||
const List<Type> _supportedKeyValueTypes = const <Type>[String, int];
|
||||
const List<Type> _supportedKeyValueTypes = <Type>[String, int];
|
||||
|
||||
DriverError _createInvalidKeyValueTypeError(String invalidType) {
|
||||
return new DriverError('Unsupported key value type $invalidType. Flutter Driver only supports ${_supportedKeyValueTypes.join(", ")}');
|
||||
|
||||
@@ -57,13 +57,13 @@ enum TimelineStream {
|
||||
vm,
|
||||
}
|
||||
|
||||
const List<TimelineStream> _defaultStreams = const <TimelineStream>[TimelineStream.all];
|
||||
const List<TimelineStream> _defaultStreams = <TimelineStream>[TimelineStream.all];
|
||||
|
||||
/// Default timeout for short-running RPCs.
|
||||
const Duration _kShortTimeout = const Duration(seconds: 5);
|
||||
const Duration _kShortTimeout = Duration(seconds: 5);
|
||||
|
||||
/// Default timeout for awaiting an Isolate to become runnable.
|
||||
const Duration _kIsolateLoadRunnableTimeout = const Duration(minutes: 1);
|
||||
const Duration _kIsolateLoadRunnableTimeout = Duration(minutes: 1);
|
||||
|
||||
/// Default timeout for long-running RPCs.
|
||||
final Duration _kLongTimeout = _kShortTimeout * 6;
|
||||
@@ -104,7 +104,7 @@ final Logger _log = new Logger('FlutterDriver');
|
||||
///
|
||||
/// driver.tap(find.text('Save'));
|
||||
/// driver.scroll(find.byValueKey(42));
|
||||
const CommonFinders find = const CommonFinders._();
|
||||
const CommonFinders find = CommonFinders._();
|
||||
|
||||
/// Computes a value.
|
||||
///
|
||||
|
||||
@@ -12,11 +12,11 @@ import 'package:path/path.dart' as path;
|
||||
import 'common.dart';
|
||||
import 'timeline.dart';
|
||||
|
||||
const JsonEncoder _prettyEncoder = const JsonEncoder.withIndent(' ');
|
||||
const JsonEncoder _prettyEncoder = JsonEncoder.withIndent(' ');
|
||||
|
||||
/// The maximum amount of time considered safe to spend for a frame's build
|
||||
/// phase. Anything past that is in the danger of missing the frame as 60FPS.
|
||||
const Duration kBuildBudget = const Duration(milliseconds: 8);
|
||||
const Duration kBuildBudget = Duration(milliseconds: 8);
|
||||
|
||||
/// Extracts statistics from a [Timeline].
|
||||
class TimelineSummary {
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'package:test/test.dart';
|
||||
import 'package:vm_service_client/vm_service_client.dart';
|
||||
|
||||
/// Magical timeout value that's different from the default.
|
||||
const Duration _kTestTimeout = const Duration(milliseconds: 1234);
|
||||
const Duration _kTestTimeout = Duration(milliseconds: 1234);
|
||||
const String _kSerializedTestTimeout = '1234';
|
||||
|
||||
void main() {
|
||||
|
||||
@@ -106,8 +106,8 @@ void main() {
|
||||
new Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: new ListView(children: const <Widget>[
|
||||
const SizedBox(width: 100.0, height: 100.0, child: const Text('hello')),
|
||||
const SizedBox(width: 100.0, height: 100.0, child: const Text('hello')),
|
||||
SizedBox(width: 100.0, height: 100.0, child: Text('hello')),
|
||||
SizedBox(width: 100.0, height: 100.0, child: Text('hello')),
|
||||
]),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user