DartPackageIo class abstract

Io base implementation.

Mixed-in types
Available extensions

Constructors

DartPackageIo(String path)
Create a package from a path.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
path → String
Package path
no setter
pubspecYaml → Map<String, Object?>
Pubspec yaml content.
no setterinherited
pubspecYamlContent ↔ YamlLinesContent
Pubspec yaml content.
getter/setter pairinherited
ready → Future<void>
File has been read and can be used.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVersion() → Version

Available on DartPackage, provided by the DartPackageExt 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 DartPackageExt extension

True if changed
toString() → String
A string representation of this object.
inherited
write() → Future<void>
Write current content to file.
writeVersion(Version version) → Future<bool>

Available on DartPackageIo, provided by the DartPackageIoExt extension

Write a package version.

Operators

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