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).
This commit is contained in:
Jacob MacDonald
2023-09-21 15:02:12 -07:00
committed by GitHub
parent 528a281a5c
commit daea6e00bf

View File

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