GridCommandRequest class sealed
One operator command for the resident station.
- Available extensions
- Annotations
-
- @freezed
Constructors
- GridCommandRequest.attachSubstation({required String name, required String root, String? prefix})
-
Attaches a substation to the live station.
constfactory
- GridCommandRequest.beadRound({required String beadId})
-
Reads one work bead's current-round identity.
constfactory
-
GridCommandRequest.board({@Default.new(<String>{}) Set<
String> stores, @Default.new(<String>{}) Set<String> statuses, @Default.new(false) bool blockedOnly, bool? approved}) -
Projects every resident work store's open beads into board rows.
constfactory
-
GridCommandRequest.collectHeldSessions({required List<
String> sessionIds, @Default.new(false) bool act, @Default.new(false) bool bulk, @Default.new(false) bool overrideUnsafe}) -
Collects the preserved worktrees for the named held
sessionIds.constfactory - GridCommandRequest.detachSubstation({required String name, @Default.new(false) bool force})
-
Detaches an attached substation, draining live sessions when forced.
constfactory
- GridCommandRequest.listGates()
-
Lists the station's open gate beads.
constfactory
- GridCommandRequest.listHeldSessions()
-
Lists closed held sessions whose preserved worktree still exists.
constfactory
- GridCommandRequest.pauseSession({required String beadId})
-
Parks the live session driving
beadIdwithout closing its round.constfactory -
GridCommandRequest.resolveGate({required String gateId, @Default.new(<String, String>{}) Map<
String, String> grades, String? rationale}) -
Resolves
gateId, optionally correcting persisted lane grades first.constfactory - GridCommandRequest.resumeSession({required String beadId})
-
Releases a parked session to re-compete for a slot and adopt its cursor.
constfactory
- GridCommandRequest.rework({required String beadId, String? note, @Default.new(false) bool beyondCap, String? actor})
-
Retires the current session round for
beadId.constfactory - GridCommandRequest.setBeadText({required String beadId, required OperatorBeadTextField field, required String content, @Default.new(false) bool append})
-
Writes one prose field on an owned work bead.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult rework(GridRework value), required TResult listGates(GridGateLs value), required TResult resolveGate(GridGateResolve value), required TResult listHeldSessions(GridSessionLs value), required TResult collectHeldSessions(GridSessionCollect value), required TResult setBeadText(GridSetBeadText value), required TResult pauseSession(GridPauseSession value), required TResult resumeSession(GridResumeSession value), required TResult board(GridBeadBoard value), required TResult beadRound(GridBeadRound value), required TResult attachSubstation(GridAttachSubstation value), required TResult detachSubstation(GridDetachSubstation value)}) → TResult -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? rework(GridRework value)?, TResult? listGates(GridGateLs value)?, TResult? resolveGate(GridGateResolve value)?, TResult? listHeldSessions(GridSessionLs value)?, TResult? collectHeldSessions(GridSessionCollect value)?, TResult? setBeadText(GridSetBeadText value)?, TResult? pauseSession(GridPauseSession value)?, TResult? resumeSession(GridResumeSession value)?, TResult? board(GridBeadBoard value)?, TResult? beadRound(GridBeadRound value)?, TResult? attachSubstation(GridAttachSubstation value)?, TResult? detachSubstation(GridDetachSubstation value)?}) → TResult? -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult rework(GridRework value)?, TResult listGates(GridGateLs value)?, TResult resolveGate(GridGateResolve value)?, TResult listHeldSessions(GridSessionLs value)?, TResult collectHeldSessions(GridSessionCollect value)?, TResult setBeadText(GridSetBeadText value)?, TResult pauseSession(GridPauseSession value)?, TResult resumeSession(GridResumeSession value)?, TResult board(GridBeadBoard value)?, TResult beadRound(GridBeadRound value)?, TResult attachSubstation(GridAttachSubstation value)?, TResult detachSubstation(GridDetachSubstation value)?, required TResult orElse()}) → TResult -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult rework(String beadId, String? note, bool beyondCap, String? actor)?, TResult listGates()?, TResult resolveGate(String gateId, Map< String, String> grades, String? rationale)?, TResult listHeldSessions()?, TResult collectHeldSessions(List<String> sessionIds, bool act, bool bulk, bool overrideUnsafe)?, TResult setBeadText(String beadId, OperatorBeadTextField field, String content, bool append)?, TResult pauseSession(String beadId)?, TResult resumeSession(String beadId)?, TResult board(Set<String> stores, Set<String> statuses, bool blockedOnly, bool? approved)?, TResult beadRound(String beadId)?, TResult attachSubstation(String name, String root, String? prefix)?, TResult detachSubstation(String name, bool force)?, required TResult orElse()}) → TResult -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult rework(String beadId, String? note, bool beyondCap, String? actor), required TResult listGates(), required TResult resolveGate(String gateId, Map< String, String> grades, String? rationale), required TResult listHeldSessions(), required TResult collectHeldSessions(List<String> sessionIds, bool act, bool bulk, bool overrideUnsafe), required TResult setBeadText(String beadId, OperatorBeadTextField field, String content, bool append), required TResult pauseSession(String beadId), required TResult resumeSession(String beadId), required TResult board(Set<String> stores, Set<String> statuses, bool blockedOnly, bool? approved), required TResult beadRound(String beadId), required TResult attachSubstation(String name, String root, String? prefix), required TResult detachSubstation(String name, bool force)}) → TResult -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? rework(String beadId, String? note, bool beyondCap, String? actor)?, TResult? listGates()?, TResult? resolveGate(String gateId, Map< String, String> grades, String? rationale)?, TResult? listHeldSessions()?, TResult? collectHeldSessions(List<String> sessionIds, bool act, bool bulk, bool overrideUnsafe)?, TResult? setBeadText(String beadId, OperatorBeadTextField field, String content, bool append)?, TResult? pauseSession(String beadId)?, TResult? resumeSession(String beadId)?, TResult? board(Set<String> stores, Set<String> statuses, bool blockedOnly, bool? approved)?, TResult? beadRound(String beadId)?, TResult? attachSubstation(String name, String root, String? prefix)?, TResult? detachSubstation(String name, bool force)?}) → TResult? -
Available on GridCommandRequest, provided by the GridCommandRequestPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited