StacGetFormValue class
A Stac action that retrieves the value of a specific form field.
This action extracts the current value from a form field identified by id. The retrieved value can be used by other actions or stored in the application state for further processing.
{@tool snippet} Dart Example:
const StacGetFormValue(
id: 'email_field',
)
{@end-tool}
{@tool snippet} JSON Example:
{
"type": "getFormValue",
"id": "email_field"
}
{@end-tool}
- Inheritance
-
- Object
- StacAction
- StacGetFormValue
- Available extensions
- Annotations
-
- @JsonSerializable.new()
Constructors
- StacGetFormValue({required String id})
-
Creates a StacGetFormValue action to retrieve a form field value.
const
-
StacGetFormValue.fromJson(Map<
String, dynamic> json) -
Creates a StacGetFormValue from a JSON map.
factory
Properties
- actionType → String
-
Action type identifier.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier of the form field to retrieve the value from.
final
-
jsonData
→ Map<
String, dynamic> ? -
The raw JSON data associated with this action.
finalinherited
- 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
-
parse(
BuildContext context) → FutureOr -
Available on StacAction?, provided by the StacActionParserExtension extension
-
toJson(
) → Map< String, dynamic> -
Converts this StacGetFormValue instance to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited