Sync lints (#126316)
Sync lints with https://github.com/dart-lang/linter/blob/master/example/all.yaml and enable `implicit_reopen` and `type_literal_in_constant_pattern` (which have no violations). Also contains some clean-up work towards enabling `matching_super_parameters`, which is not quite ready yet due to its handling of "private" arguments.
This commit is contained in:
committed by
GitHub
parent
0a63cd70f1
commit
42d9a2b3fa
@@ -894,7 +894,7 @@ class _CupertinoEdgeShadowDecoration extends Decoration {
|
||||
class _CupertinoEdgeShadowPainter extends BoxPainter {
|
||||
_CupertinoEdgeShadowPainter(
|
||||
this._decoration,
|
||||
super.onChange,
|
||||
super.onChanged,
|
||||
) : assert(_decoration._colors == null || _decoration._colors!.length > 1);
|
||||
|
||||
final _CupertinoEdgeShadowDecoration _decoration;
|
||||
|
||||
@@ -328,7 +328,7 @@ abstract class MultiDragGestureRecognizer extends GestureRecognizer {
|
||||
}
|
||||
|
||||
class _ImmediatePointerState extends MultiDragPointerState {
|
||||
_ImmediatePointerState(super.initialPosition, super.kind, super.deviceGestureSettings);
|
||||
_ImmediatePointerState(super.initialPosition, super.kind, super.gestureSettings);
|
||||
|
||||
@override
|
||||
void checkForResolutionAfterMove() {
|
||||
@@ -381,7 +381,7 @@ class ImmediateMultiDragGestureRecognizer extends MultiDragGestureRecognizer {
|
||||
|
||||
|
||||
class _HorizontalPointerState extends MultiDragPointerState {
|
||||
_HorizontalPointerState(super.initialPosition, super.kind, super.deviceGestureSettings);
|
||||
_HorizontalPointerState(super.initialPosition, super.kind, super.gestureSettings);
|
||||
|
||||
@override
|
||||
void checkForResolutionAfterMove() {
|
||||
@@ -434,7 +434,7 @@ class HorizontalMultiDragGestureRecognizer extends MultiDragGestureRecognizer {
|
||||
|
||||
|
||||
class _VerticalPointerState extends MultiDragPointerState {
|
||||
_VerticalPointerState(super.initialPosition, super.kind, super.deviceGestureSettings);
|
||||
_VerticalPointerState(super.initialPosition, super.kind, super.gestureSettings);
|
||||
|
||||
@override
|
||||
void checkForResolutionAfterMove() {
|
||||
@@ -486,7 +486,7 @@ class VerticalMultiDragGestureRecognizer extends MultiDragGestureRecognizer {
|
||||
}
|
||||
|
||||
class _DelayedPointerState extends MultiDragPointerState {
|
||||
_DelayedPointerState(super.initialPosition, Duration delay, super.kind, super.deviceGestureSettings) {
|
||||
_DelayedPointerState(super.initialPosition, Duration delay, super.kind, super.gestureSettings) {
|
||||
_timer = Timer(delay, _delayPassed);
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ abstract class SliverChildDelegate {
|
||||
}
|
||||
|
||||
class _SaltedValueKey extends ValueKey<Key> {
|
||||
const _SaltedValueKey(super.key);
|
||||
const _SaltedValueKey(super.value);
|
||||
}
|
||||
|
||||
/// Called to find the new index of a child based on its `key` in case of
|
||||
|
||||
@@ -70,7 +70,7 @@ class FakeImageStreamCompleter extends ImageStreamCompleter {
|
||||
}
|
||||
|
||||
class TestAssetImage extends AssetImage {
|
||||
const TestAssetImage(super.name, this.images);
|
||||
const TestAssetImage(super.assetName, this.images);
|
||||
|
||||
final Map<double, ui.Image> images;
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ class SetFrameSync extends Command {
|
||||
const SetFrameSync(this.enabled, { super.timeout });
|
||||
|
||||
/// Deserializes this command from the value generated by [serialize].
|
||||
SetFrameSync.deserialize(super.params)
|
||||
: enabled = params['enabled']!.toLowerCase() == 'true',
|
||||
SetFrameSync.deserialize(super.json)
|
||||
: enabled = json['enabled']!.toLowerCase() == 'true',
|
||||
super.deserialize();
|
||||
|
||||
/// Whether frameSync should be enabled or disabled.
|
||||
|
||||
@@ -11,8 +11,8 @@ class RequestData extends Command {
|
||||
const RequestData(this.message, { super.timeout });
|
||||
|
||||
/// Deserializes this command from the value generated by [serialize].
|
||||
RequestData.deserialize(super.params)
|
||||
: message = params['message'],
|
||||
RequestData.deserialize(super.json)
|
||||
: message = json['message'],
|
||||
super.deserialize();
|
||||
|
||||
/// The message being sent from the test to the application.
|
||||
|
||||
@@ -10,8 +10,8 @@ class SetSemantics extends Command {
|
||||
const SetSemantics(this.enabled, { super.timeout });
|
||||
|
||||
/// Deserializes this command from the value generated by [serialize].
|
||||
SetSemantics.deserialize(super.params)
|
||||
: enabled = params['enabled']!.toLowerCase() == 'true',
|
||||
SetSemantics.deserialize(super.json)
|
||||
: enabled = json['enabled']!.toLowerCase() == 'true',
|
||||
super.deserialize();
|
||||
|
||||
/// Whether semantics should be enabled (true) or disabled (false).
|
||||
|
||||
@@ -21,7 +21,7 @@ import 'protocol_discovery.dart';
|
||||
/// A partial implementation of Device for desktop-class devices to inherit
|
||||
/// from, containing implementations that are common to all desktop devices.
|
||||
abstract class DesktopDevice extends Device {
|
||||
DesktopDevice(super.identifier, {
|
||||
DesktopDevice(super.id, {
|
||||
required PlatformType super.platformType,
|
||||
required super.ephemeral,
|
||||
required Logger logger,
|
||||
|
||||
@@ -15,7 +15,7 @@ import 'vmservice.dart';
|
||||
const String kFlutterTestOutputsDirEnvName = 'FLUTTER_TEST_OUTPUTS_DIR';
|
||||
class ColdRunner extends ResidentRunner {
|
||||
ColdRunner(
|
||||
super.devices, {
|
||||
super.flutterDevices, {
|
||||
required super.target,
|
||||
required super.debuggingOptions,
|
||||
this.traceStartup = false,
|
||||
|
||||
@@ -79,7 +79,7 @@ class DeviceReloadReport {
|
||||
|
||||
class HotRunner extends ResidentRunner {
|
||||
HotRunner(
|
||||
super.devices, {
|
||||
super.flutterDevices, {
|
||||
required super.target,
|
||||
required super.debuggingOptions,
|
||||
this.benchmarkMode = false,
|
||||
|
||||
@@ -44,7 +44,7 @@ class FlutterTesterApp extends ApplicationPackage {
|
||||
/// also be used as a regular device when `--show-test-device` is provided
|
||||
/// to the flutter command.
|
||||
class FlutterTesterDevice extends Device {
|
||||
FlutterTesterDevice(super.deviceId, {
|
||||
FlutterTesterDevice(super.id, {
|
||||
required ProcessManager processManager,
|
||||
required FlutterVersion flutterVersion,
|
||||
required Logger logger,
|
||||
|
||||
@@ -842,7 +842,7 @@ class NoOpDoctor implements Doctor {
|
||||
}
|
||||
|
||||
class PassingValidator extends DoctorValidator {
|
||||
PassingValidator(super.name);
|
||||
PassingValidator(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
@@ -1082,7 +1082,7 @@ class FakeDoctorValidatorsProvider implements DoctorValidatorsProvider {
|
||||
}
|
||||
|
||||
class PassingGroupedValidator extends DoctorValidator {
|
||||
PassingGroupedValidator(super.name);
|
||||
PassingGroupedValidator(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
@@ -1094,7 +1094,7 @@ class PassingGroupedValidator extends DoctorValidator {
|
||||
}
|
||||
|
||||
class MissingGroupedValidator extends DoctorValidator {
|
||||
MissingGroupedValidator(super.name);
|
||||
MissingGroupedValidator(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
@@ -1106,7 +1106,7 @@ class MissingGroupedValidator extends DoctorValidator {
|
||||
}
|
||||
|
||||
class PartialGroupedValidator extends DoctorValidator {
|
||||
PartialGroupedValidator(super.name);
|
||||
PartialGroupedValidator(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
@@ -1118,7 +1118,7 @@ class PartialGroupedValidator extends DoctorValidator {
|
||||
}
|
||||
|
||||
class PassingGroupedValidatorWithStatus extends DoctorValidator {
|
||||
PassingGroupedValidatorWithStatus(super.name);
|
||||
PassingGroupedValidatorWithStatus(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
|
||||
Reference in New Issue
Block a user