AtCreateCommand<T> constructor
AtCreateCommand<T> ({})
Implementation
AtCreateCommand({
required this.successValue,
List<String>? availablePlatforms,
List<String>? allCreatePlatforms,
String? platformHelp,
}) {
// flutter create Arguments
// Copyright 2014 The Flutter Authors. All rights reserved.
argParser.addFlag(
'pub',
defaultsTo: true,
help: 'Whether to run "flutter pub get" after the project has been created.',
);
argParser.addFlag(
'overwrite',
defaultsTo: false,
help: 'When performing operations, overwrite existing files.',
);
argParser.addOption(
'description',
defaultsTo: 'A new Flutter project.',
help: 'The description to use for your new Flutter project. This string ends up in the pubspec.yaml file.',
);
argParser.addOption(
'org',
defaultsTo: 'com.example',
help: 'The organization responsible for your new Flutter project, in reverse domain name notation. '
'This string is used in Java package names and as prefix in the iOS bundle identifier.',
);
argParser.addOption(
'project-name',
defaultsTo: null,
help: 'The project name for this new Flutter project. This must be a valid dart package name.',
);
argParser.addMultiOption(
'platforms',
defaultsTo: availablePlatforms ?? defaultAvailablePlatforms,
allowed: allCreatePlatforms ?? defaultAllCreatePlatforms,
help: platformHelp ?? defaultPlatformHelp,
);
}