action property
ElicitationAction
get
action
The action taken by the user in response to an elicitation request.
- ElicitationAction.accept: The user accepted the request and provided the requested information.
- ElicitationAction.reject: The user explicitly declined the action.
- ElicitationAction.cancel: The user dismissed without making an explicit choice.
Implementation
ElicitationAction get action {
final action = _value['action'] as String?;
if (action == null) {
throw ArgumentError('Missing required action field in $ElicitResult');
}
return ElicitationAction.values.byName(action);
}