ComponentLibrary class final
Component definitions by type name: the project's (or a document's) library, and the catalog a page's calls decode with.
- Annotations
-
- @immutable
Constructors
-
ComponentLibrary(Map<
String, LayoutDocument> definitions) -
ComponentLibrary.of(Iterable<
LayoutDocument> documents) -
The definitions of
documents(those that are components, by theirwidget.type; a later one of the same type wins).factory
Properties
-
calls
→ Map<
String, Set< String> > -
The component types each definition calls, directly.
latefinal
- catalog → Catalog
-
Their declarations as a catalog: what a page is decoded with (over the
host's) so its calls' props are typed.
latefinal
-
cycles
→ List<
List< String> > -
Every cycle of definitions calling each other (directly or through
others), each as the path of types from where it starts back to it
(
[A, B, A]), once per cycle.latefinal -
definitions
→ Map<
String, LayoutDocument> -
Every definition, by its type name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closureOf(
LayoutDocument document) → List< String> -
The definitions
documentneeds: the types it calls and every type they call, transitively (its closure), in a stable order. -
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
-
operator [](
String type) → LayoutDocument?
Static Properties
- empty → ComponentLibrary
-
final