RawAdaptiveCardState class

Host-facing card state: runtime overlays, validation, and imperative updates without mutating baseline JSON.

Inheritance

Constructors

RawAdaptiveCardState()

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
documentContainer ↔ ProviderContainer?
Riverpod container for this card scope; available after first frame for advanced host integrations outside widget build.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget RawAdaptiveCard
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
applyUpdates({Iterable<AdaptiveElementUpdate> elements = const [], Iterable<AdaptiveActionUpdate> actions = const []}) → void
Applies sparse overlay patches without mutating baseline JSON.
applyUpdatesFromMap(Map<String, Object?> byId) → void
Parses byId patch maps (Adaptive Card property names) into overlay updates.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
changeValue(String id, dynamic value, {DataQuery? dataQuery}) → void
Notifies the host that input id changed, optionally with a dataQuery.
clearFacts(String id) → void
Clears facts overlay for id.
clearInputError(String id) → void
Clears validation overlays for input id.
clearText(String id) → void
Clears text overlay for element id.
datePickerCupertino(BuildContext context, DateTime? value, DateTime? min, DateTime? max) Future<DateTime?>
Cupertino-style date picker used on iOS and macOS.
datePickerForPlatform(BuildContext context, DateTime? value, DateTime? min, DateTime? max) Future<DateTime?>
Shows a platform-appropriate date picker constrained by min and max.
datePickerMaterial(BuildContext context, DateTime? value, DateTime? min, DateTime? max) Future<DateTime?>
Material date picker for non-Apple platforms; null min/max means no bound in that direction.
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
override
didUpdateWidget(covariant RawAdaptiveCard oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
inherited
initInput(Map map) → void
Seeds input overlays from map (e.g. RawAdaptiveCard.initData).
initState() → void
Called when this object is inserted into the tree.
override
loadInput(String id, Map map) → void
Replaces Input.ChoiceSet choices for id via the document overlay.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
rebuild() → void
Forces a card subtree rebuild when host logic changes state outside overlay notifiers.
resetInput(String id) → void
Factory-resets one input id (same rules as Action.ResetInputs per field).
searchList(List<Choice>? data, void callback(Choice? value), {String? inputId}) Future<void>
Presents a modal ChoiceFilter sheet and returns the selection via callback.
setActionEnabled(String id, {required bool enabled}) → void
Sets whether action id is enabled (AC 1.5).
setFacts(String id, List<Fact> facts) → void
Replaces effective "facts" for FactSet id.
setInputError(String id, {String? message, bool isInvalid = true}) → void
Sets host-driven validation overlays for input id.
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
setText(String id, String text) → void
Replaces effective "text" for element id (e.g. TextBlock).
showError(String message) → void
Displays message in a SnackBar for quick host feedback.
timePickerCupertino(BuildContext context, TimeOfDay? defaultTime, TimeOfDay? minimumTime, TimeOfDay? maximumTime) Future<TimeOfDay?>
Cupertino-style time picker used on iOS and macOS.
timePickerForPlatform(BuildContext context, TimeOfDay? defaultTime, TimeOfDay? minTime, TimeOfDay? maxTime) Future<TimeOfDay?>
Shows a platform-appropriate time picker within optional bounds.
timePickerMaterial(BuildContext context, TimeOfDay? defaultTime, TimeOfDay? minTime, TimeOfDay? maxTime) Future<TimeOfDay?>
Material time picker; minTime/maxTime are ignored on this platform.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited