Arg<T> class

One parameter a widget declaration names, with the value it falls back to when a scene sets nothing.

The type is the type argument, and it survives to runtime as type — which is how an editor can be told size is a double without anything having resolved the widget's own source.

Constructors

Arg(String name, [T? fallback])
const

Properties

fallback → T?
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Type
no setter

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