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:
Michael Goderbauer
2023-05-11 15:27:51 +02:00
committed by GitHub
parent 0a63cd70f1
commit 42d9a2b3fa
14 changed files with 29 additions and 24 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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).