BindPaths class abstract final

Binding paths (keys of Node.bind) and how values are applied to them.

Properties

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

apply(Node node, String path, Object? value) → Node
node with value at binding path; node itself when the path or the value doesn't apply.
declaredDefault(Node node, String path) → Object?
The declared default (as JSON) of the field at binding path on node: what the node has there when its JSON omits the field, as encoders omit a default. Known for opacity, props.<key>, layout.<key>, decoration.<key> and a custom paint op's field (customPaint.painter.<op id>.<field>); null for any other path. An animation track with no from or to starts or ends at the node's own value, which is this when the JSON has none.
fill(String paintId) → String
A fill by paint id: the whole paint (a color gives a solid paint).
parse(String path) → List<PathKey>
path split into keys: names, [n] indices, *. Empty when it isn't a path.
prop(String key) → String
props.<key>.
stateOf(String path) → WidgetState?
The interaction state a binding path drives, or null.
stroke(String paintId) → String
A stroke by paint id.

Constants

data → const String
The items a repeating widget (list, grid, page view) builds one per.
disabled → const String
flex → const String
height → const String
margin → const String
opacity → const String
padding → const String
radius → const String
selected → const String
Interaction states driven by data: true puts the node in WidgetState.selected / WidgetState.disabled, so its state styles (states.selected, states.disabled) patch it and its descendants, as hover and press do ("selected": "${= item.id == selectedId}").
strokeWidth → const String
textDirection → const String
visible → const String
width → const String
x → const String
y → const String