A2uiCatalogComponent class
A component's API: its name and the JSON Schema declaring its props.
Constructors
-
A2uiCatalogComponent({required String name, required Map<
String, dynamic> schema}) -
Creates an A2uiCatalogComponent from a raw JSON Schema.
const
-
A2uiCatalogComponent.fromJson(String name, Map<
String, dynamic> schema) -
Builds an A2uiCatalogComponent from a
catalog.jsonentry, keeping a frozen copy ofschema.factory -
A2uiCatalogComponent.simple({required String name, String? description, required List<
A2uiParam> params, bool checkable = false}) -
Builds a spec-shaped component from an ordered parameter list, for
catalogs authored in Dart rather than loaded from a
catalog.json.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The component type name, e.g.
Text.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schema
→ Map<
String, dynamic> -
The component's JSON Schema, in the spec's
catalog.jsonshape.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this component back to its
catalog.jsonschema. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited