DartPackageIo class abstract
Io base implementation.
- Implemented types
- Available extensions
Constructors
- DartPackageIo.new(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
-
compiledExe(
{String? script, bool force = false, Version? minVersion, bool verbose = false}) → Future< DartPackageIoCompiledExe> -
Available on DartPackageIo, provided by the DartPackageIoCompileExeExt extension
Simple exe compiler -
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
-
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