ApprovalState
Category: Services
Source: approval_state.dart
Classes
ApprovalState
Mutable holder for the current approval mode. App owns the storage (the _approvalMode field); this service exposes it through a typed surface so commands and other consumers do not reach into App.
Constructor
dart
ApprovalState({required this._get, required this._set})Properties
| Property | Type | Description |
|---|---|---|
mode | ApprovalMode get | |
mode | ApprovalMode get |
Methods
void setMode(ApprovalMode mode)
ApprovalMode toggle()
Cycles between confirm and auto. Returns the new mode.