RevokeResolution class

The keys revoke <label-or-prefix> resolve → refuse decision, factored out of run() as a pure function. run() itself can't be exercised end to end in a test — ApiClient.forKey isn't injectable, so there's no fake server behind a subprocess — so this is what makes the decision itself unit-testable in-process, the same pattern LoginCommand.ciRefusalMessage uses for the CI-refusal decision.

Properties

decision → RevokeDecision
final
hashCode → int
The hash code for this object.
no setterinherited
match → Map<String, dynamic>?
final
matches → List<Map<String, dynamic>>?
final
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
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

resolve({required List<Map<String, dynamic>> matches, required String? currentKeyId, required bool force}) → RevokeResolution