A2uiParam class
One property of a component authored with A2uiCatalogComponent.simple.
Each constructor emits the JSON Schema fragment the spec uses for that kind
of property, which is what tells the Express compiler whether a slot takes
a literal, a $/path binding, a component id or an action.
Constructors
- A2uiParam.action(String name, {String? description, bool required = false})
-
An action fired on interaction (
Button.action), writtenEvent("name", {context})in Express.const - A2uiParam.boolean(String name, {String? description, bool required = false})
-
A literal-only boolean.
const
- A2uiParam.child(String name, {String? description, bool required = false})
-
The id of one child component (
Card.child).const - A2uiParam.children(String name, {String? description, bool required = false})
-
A list of child component ids (
Column.children), or a_template(...)binding that generates them from a data-model list.const - A2uiParam.dynamicValue(String name, {String? description, bool required = false, A2uiDynamicType type = A2uiDynamicType.string})
-
A literal or a
$/pathbinding, of the valuetype(a string unless set).const - A2uiParam.number(String name, {String? description, bool required = false})
-
A literal-only number.
const
-
A2uiParam.schema(String name, Map<
String, dynamic> schema, {bool required = false}) -
A property with a hand-written JSON Schema, for the one property the
other kinds do not cover (keeping the rest of the component on
A2uiCatalogComponent.simple).
const
-
A2uiParam.string(String name, {String? description, bool required = false, List<
String> ? enumValues}) -
A literal-only string, optionally restricted to
enumValues.const
Properties
- description → String?
-
Model-facing description.
final
-
enumValues
→ List<
String> ? -
Allowed values, for literal-only string params.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The property name, e.g.
text.final - required → bool
-
Whether the component must set this property.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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