ComponentDocument extension

A layout document read as a component definition.

on

Properties

componentRoot → String?

Available on LayoutDocument, provided by the ComponentDocument extension

The definition's root node id.
no setter
componentType → String?

Available on LayoutDocument, provided by the ComponentDocument extension

The component's type name (its widget.type); null when it isn't one.
no setter
componentVariables → List<Variable>

Available on LayoutDocument, provided by the ComponentDocument extension

Its own variables: one set per instance (keyed by its root, as a canvas's are).
no setter
isComponent → bool

Available on LayoutDocument, provided by the ComponentDocument extension

Whether it is a component definition: a widget declaration with a type, and exactly one root.
no setter
previews → List<ComponentPreview>

Available on LayoutDocument, provided by the ComponentDocument extension

Its previews (previews).
no setter
widget → WidgetSpec?

Available on LayoutDocument, provided by the ComponentDocument extension

Its declaration (widget), or null when it isn't a component.
no setter

Methods

callsTo(Set<String> types) → Iterable<Node>

Available on LayoutDocument, provided by the ComponentDocument extension

The call nodes in it: nodes whose type is one of types (component type names).