Unverified Commit daea6e00 authored by Jacob MacDonald's avatar Jacob MacDonald Committed by GitHub

remove field override, assign to super field instead (#135165)

Removes an ignore about overriding fields. Instead we just assign the value to the original field in the super class.

Related to https://github.com/dart-lang/language/issues/3332 (discovered during investigations into the violation of that lint).
parent 528a281a
......@@ -1335,13 +1335,10 @@ class FakeIOSDevice extends Fake implements IOSDevice {
class TestRunCommandForUsageValues extends RunCommand {
TestRunCommandForUsageValues({
this.devices,
});
@override
// devices is not set within usageValues, so we override the field
// ignore: overridden_fields
List<Device>? devices;
List<Device>? devices,
}) {
this.devices = devices;
}
@override
Future<BuildInfo> getBuildInfo({ BuildMode? forcedBuildMode, File? forcedTargetFile }) async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment