MasonYaml class

Brick yaml file which contains metadata required to create a MasonGenerator from a brick template.

Annotations
  • @JsonSerializable()

Constructors

MasonYaml(Map<String, BrickLocation>? bricks)
Brick yaml file which contains metadata required to create a MasonGenerator from a brick template.
const
MasonYaml.fromJson(Map json)
Converts Map to MasonYaml
factory

Properties

bricks Map<String, BrickLocation>
Map of BrickLocation alias to BrickLocation instances.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Converts MasonYaml to Map
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

findNearest(Directory cwd) File?
Finds nearest ancestor mason.yaml file relative to the cwd.

Constants

empty → const MasonYaml
static constant for an empty mason.yaml file.
file → const String
static constant for mason configuration file name. mason.yaml