DartPackage class abstract

Dart package.

Implemented types
Available extensions

Constructors

DartPackage.withContent(String content)
Dart package from a yaml content.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pubspecYaml Map<String, Object?>
Pubspec yaml content.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDependencyObject({required String dependency, PubDependencyKind? kind}) Object?

Available on DartPackageReader, provided by the DartPackageReaderExt extension

Get the dependency map as {"dependency: <content>"} Null if not found
getVersion() → Version

Available on DartPackageReader, provided by the DartPackageReaderExt extension

Get version from pubspec.yaml
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVersion(Version version) bool

Available on DartPackage, provided by the DartPackageWriterExt extension

True if changed
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited