PubspecYaml constructor

const PubspecYaml({
  1. required String name,
  2. Optional<String> version = const Optional.none(),
  3. Optional<String> description = const Optional.none(),
  4. List<String> authors = const [],
  5. Optional<String> homepage = const Optional.none(),
  6. Optional<String> repository = const Optional.none(),
  7. Optional<String> issueTracker = const Optional.none(),
  8. Optional<String> documentation = const Optional.none(),
  9. Optional<String> publishTo = const Optional.none(),
  10. Iterable<PackageDependencySpec> dependencies = const [],
  11. Iterable<PackageDependencySpec> devDependencies = const [],
  12. Iterable<PackageDependencySpec> dependencyOverrides = const [],
  13. Map<String, String> environment = const {},
  14. Map<String, Optional<String>> executables = const {},
  15. 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>{},
});