SceneTokenDecl class
Constructors
SceneTokenDecl (String name , SceneParamKind kind , Object value )
A library value: the editor holds it, draws it and compares against it.
SceneTokenDecl.export (String name , String type )
An export: the app's own value, named and typed, never read. The type
decides where the editor offers it — a Color on colour properties, a
TextStyle in a text's style slot, a double on numbers — and
anything else is OPAQUE: only an external widget's argument of that
type can take it. The guest resolves the name; the editor never holds
the value, so an export binding is never auto-detached.
SceneTokenDecl.opaque (String name , String type )
An export of a type the editor only names — kept for the callers that
spell it; SceneTokenDecl.export says the same for any type.
SceneTokenDecl.style (String name , SceneTextStyle value )
A text style: a bundle of table values the editor renders and a text
node takes whole, with each property still its own to override.
const
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
hasValue
→ bool
Whether the editor holds a value for this: a library token does, an
export never does.
no setter
isExport
→ bool
Whether the app owns this: a name and a type, no value here.
no setter
isOpaque
→ bool
The app's own object — neither a value the editor renders nor a style.
no setter
isStyle
→ bool
A text style — a library's, whose fields the editor holds, or an
export's, which the guest lays under the text's own values.
no setter
kind
→ SceneParamKind ?
The value kind, or null for an opaque token.
final
name
→ String
final
owner
→ SceneTokenOwner
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
style
→ SceneTextStyle ?
The style, for a library style token; null for an export's, whose
fields only the app knows.
no setter
type
→ String
The Dart type the declaration spelled — double, or the app's own.
final
typeName
→ String
no setter
value
→ Object ?
String, double, bool or SceneColor ; null for an opaque token.
final
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited