RequestWireEvent class final
A host-interaction request frame: approval_request, ask_request, or
secret_request. The host answers with the matching _response
command, echoing requestId.
- Inheritance
-
- Object
- DecodedWireEvent
- RequestWireEvent
Constructors
-
RequestWireEvent({required String kind, required String requestId, ApprovalRequest? approval, List<
AskQuestion> questions = const [], String? secretName, String? secretReason, required Map<String, dynamic> raw})
Properties
- approval → ApprovalRequest?
-
Native approval request payload (kind ==
approval_request).final - hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
approval_request|ask_request|secret_request.final -
questions
→ List<
AskQuestion> -
Native questions (kind ==
ask_request).final -
raw
→ Map<
String, dynamic> -
The raw frame as received (unknown fields preserved).
finalinherited
- requestId → String
-
Correlation id echoed by the host's response command.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretName → String?
-
Requested env var name (kind ==
secret_request).final - secretReason → String?
-
Why the secret was requested (kind ==
secret_request).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