migrate to super params (#100509)

This commit is contained in:
Michael Goderbauer
2022-03-31 11:46:47 -07:00
committed by GitHub
parent baa45a1718
commit dcde8163ce
46 changed files with 186 additions and 339 deletions

View File

@@ -56,7 +56,7 @@ const Map<String, HardwareType> kKnownHardware = <String, HardwareType>{
/// map to specify that they are actually physical devices.
class AndroidDevice extends Device {
AndroidDevice(
String id, {
super.id, {
this.productID,
required this.modelID,
this.deviceCodeName,
@@ -74,7 +74,6 @@ class AndroidDevice extends Device {
_androidConsoleSocketFactory = androidConsoleSocketFactory,
_processUtils = ProcessUtils(logger: logger, processManager: processManager),
super(
id,
category: Category.mobile,
platformType: PlatformType.android,
ephemeral: true,

View File

@@ -23,13 +23,12 @@ import 'gradle.dart';
/// An application package created from an already built Android APK.
class AndroidApk extends ApplicationPackage implements PrebuiltApplicationPackage {
AndroidApk({
required String id,
required super.id,
required this.applicationPackage,
required this.versionCode,
required this.launchActivity,
}) : assert(applicationPackage != null),
assert(launchActivity != null),
super(id: id);
assert(launchActivity != null);
/// Creates a new AndroidApk from an existing APK.
///

View File

@@ -8,7 +8,6 @@ import '../base/deferred_component.dart';
import '../base/error_handling_io.dart';
import '../base/file_system.dart';
import '../base/logger.dart';
import '../base/platform.dart';
import '../globals.dart' as globals;
import '../project.dart';
import '../template.dart';
@@ -29,12 +28,11 @@ class DeferredComponentsPrebuildValidator extends DeferredComponentsValidator {
/// When [exitOnFail] is set to true, the [handleResults] and [attemptToolExit]
/// methods will exit the tool when this validator detects a recommended
/// change. This defaults to true.
DeferredComponentsPrebuildValidator(Directory projectDir, Logger logger, Platform platform, {
bool exitOnFail = true,
String? title,
DeferredComponentsPrebuildValidator(super.projectDir, super.logger, super.platform, {
super.exitOnFail,
super.title,
Directory? templatesDir,
}) : _templatesDir = templatesDir,
super(projectDir, logger, platform, exitOnFail: exitOnFail, title: title);
}) : _templatesDir = templatesDir;
final Directory? _templatesDir;