NpmDependency constructor

const NpmDependency(
  1. String name,
  2. String version, {
  3. String? importAs,
  4. String cdn = 'https://esm.sh',
  5. String? integrity,
  6. String? subPath,
})

Creates an NpmDependency descriptor.

Implementation

const NpmDependency(
  this.name,
  this.version, {
  this.importAs,
  this.cdn = 'https://esm.sh',
  this.integrity,
  this.subPath,
});