PubspecYaml constructor
const
PubspecYaml({
- required String name,
- Optional<
String> version = const Optional.none(), - Optional<
String> description = const Optional.none(), - List<
String> authors = const [], - Optional<
String> homepage = const Optional.none(), - Optional<
String> repository = const Optional.none(), - Optional<
String> issueTracker = const Optional.none(), - Optional<
String> documentation = const Optional.none(), - Optional<
String> publishTo = const Optional.none(), - Iterable<
PackageDependencySpec> dependencies = const [], - Iterable<
PackageDependencySpec> devDependencies = const [], - Iterable<
PackageDependencySpec> dependencyOverrides = const [], - Map<
String, String> environment = const {}, - Map<
String, Optional< executables = const {},String> > - Map<
String, dynamic> customFields = const <String, dynamic>{},
Default constructor
Implementation
const PubspecYaml({
required this.name,
this.version = const Optional.none(),
this.description = const Optional.none(),
this.authors = const [],
this.homepage = const Optional.none(),
this.repository = const Optional.none(),
this.issueTracker = const Optional.none(),
this.documentation = const Optional.none(),
this.publishTo = const Optional.none(),
this.dependencies = const [],
this.devDependencies = const [],
this.dependencyOverrides = const [],
this.environment = const {},
this.executables = const {},
this.customFields = const <String, dynamic>{},
});