PathRoleOverride class final

A path-scoped set of role chains, applied when the cwd matches pattern.

Constructors

PathRoleOverride({required String pattern, required Map<String, List<ModelRef>> roles})
Creates an override for pattern with per-role chains.
const
PathRoleOverride.fromYaml(Object? node)
Parses one modelOverrides yaml entry.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pattern String
Absolute path, ~-rooted path, or glob (* matches within a segment, ** matches across segments).
final
roles Map<String, List<ModelRef>>
Role → chain pinned for matching directories.
final
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
toString() String
A string representation of this object.
inherited
toYaml() String
Serializes to yaml (round-trips with PathRoleOverride.fromYaml).

Operators

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