Skip to content

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

PropertyTypeDescription
modeApprovalMode get
modeApprovalMode get

Methods

void setMode(ApprovalMode mode)
ApprovalMode toggle()

Cycles between confirm and auto. Returns the new mode.

Released under the MIT License.