MultiSettings class

reads/writes to the pubrelease_multi.yaml file.

Holds settings information for a project including any package dependencies use by the 'multi' command.

Constructors

MultiSettings.load({String? pathTo})
Load the pubrelease_multi.yaml into memory. pathTo is intended for aiding with unit testing by allowing the test to pass an alternate path. Normally pathTo should not be passed as the file will be loaded from its default location. If you pass pathTo it must include the filename.

Properties

hashCode int
The hash code for this object.
no setterinherited
packages List<Package>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsPackage(String packageName) bool
getHighestVersion() Version
When releasing we need to ensure that the version no. of any package is higher than the previously released package no. So we need to find the highest version no. from all of the packages.
hasDependencies() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() bool

Operators

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

Static Properties

homeProjectPath String
getter/setter pair
pathToYaml String
latefinal

Static Methods

yamlExists() bool

Constants

filename → const String