DartPackageReader class abstract

Dart package reader.

Available extensions

Constructors

DartPackageReader.pubspecString(String content)
Factory constructor from pubspec string content.
factory
DartPackageReader.pubspecYaml(Map<String, Object?> pubspecYaml)
Factory constructor from existing pubspec yaml.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pubspecYaml Map<String, Object?>
Pubspec yaml content.
no setter
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
toString() String
A string representation of this object.
inherited

Operators

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