ScreenDoc class

A vocabulary document describing a screen.

Constructors

ScreenDoc({required LayoutKind layout, required String name, required UiNode root, List<String> states = const <String>['loading', 'empty', 'error', 'data'], List<UiBinding> bindings = const <UiBinding>[]})
const
ScreenDoc.fromJson(Map<String, Object?> json)
factory

Properties

bindings → List<UiBinding>
Optional data bindings declared at document level.
final
hashCode → int
The hash code for this object.
no setterinherited
layout → LayoutKind
Layout the renderer should produce.
final
name → String
Human-readable screen name (e.g. "Notes").
final
root → UiNode
Root node of the described screen.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
states → List<String>
States the screen must render/cover (e.g. loading, empty, error, data).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Serialize to a canonical map (for golden comparison / persistence).
toString() → String
A string representation of this object.
inherited

Operators

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