PubSpec constructor

const PubSpec({
  1. String? name,
  2. String? author,
  3. Version? version,
  4. String? homepage,
  5. String? documentation,
  6. String? description,
  7. Uri? publishTo,
  8. Environment? environment,
  9. Map<String, DependencyReference> dependencies = const {},
  10. Map<String, DependencyReference> devDependencies = const {},
  11. Map<String, DependencyReference> dependencyOverrides = const {},
  12. Map<String, Executable> executables = const {},
  13. Map? unParsedYaml = const {},
})

Implementation

const PubSpec(
    {this.name,
    this.author,
    this.version,
    this.homepage,
    this.documentation,
    this.description,
    this.publishTo,
    this.environment,
    this.dependencies: const {},
    this.devDependencies: const {},
    this.dependencyOverrides: const {},
    this.executables: const {},
    this.unParsedYaml: const {}});