Config class final
A2UI-specific configuration for a custom widget catalog entry.
Use the unnamed constructor to set multiple values together, or compose named constructors when each value is clearer as a separate annotation.
- Annotations
-
- @immutable
- @Target.new({TargetKind.classType, TargetKind.field})
Constructors
-
Config({bool? enabled, String? usage, Map<
String, String> ? writeBackValues, String? writeBackValue}) -
Creates an A2UI configuration overlay.
const
- Config.enabled(bool enabled)
-
Controls whether the annotated custom widget participates in A2UI emit.
const
- Config.usage(String usage)
-
Configures producer-facing usage guidance for the annotated widget.
const
- Config.writeBackValue(String writeBackValue)
-
Configures the value property paired with an annotated callback field.
const
-
Config.writeBackValues(Map<
String, String> writeBackValues) -
Configures callback-to-value write-back pairings for a widget.
const
Properties
- enabled → bool?
-
Whether this custom widget participates in A2UI emit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → String?
-
Producer-facing guidance describing when to use the widget.
final
- writeBackValue → String?
-
Value property paired with an annotated callback field.
final
-
writeBackValues
→ Map<
String, String> ? -
Callback property name to value property name pairings.
final
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