ThemeRefs class final

Resolves theme names in JSON written for declared types against a ThemeTokens (already for the screen's size and mode: ThemeTokens.atScreen, ThemeTokens.forBrightness).

Constructors

ThemeRefs(ThemeTokens theme)
A name the theme does not have that is one of the notation's roles (ThemeTokens.notationRoles: surface, line, card...) is the role's value in this theme: its light one, or on a dark ground one made from the theme's ink and ground. A panel written in surface (a notation dialog's) is never left transparent.

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

document(LayoutDocument doc) → LayoutDocument
doc with every node that names something of the theme resolved (the others are the same objects, so a source comparing nodes sees only those change).
node(Json json, WidgetSpec? spec, {WidgetSpec? specOf(String id)?}) → Json
A node's JSON (or a patch of it: a media rule's, an interaction state's) with the names it uses resolved; json itself when it names nothing. spec declares its props; specOf gives the declaration of another node an interaction state patches.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
value(PropType type, Object? json, {bool keepFrom = true}) → Object?
json, a value of type, with the names it uses resolved; json itself (identical) when it names nothing this theme has.

Operators

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