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.
const
factory
GridCommandRequest.beadRound({required String beadId})
Reads one work bead's current-round identity.
const
factory
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.
const
factory
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.
const
factory
GridCommandRequest.detachSubstation({required String name, @Default.new(false) bool force})
Detaches an attached substation, draining live sessions when forced.
const
factory
GridCommandRequest.listGates()
Lists the station's open gate beads.
const
factory
GridCommandRequest.listHeldSessions()
Lists closed held sessions whose preserved worktree still exists.
const
factory
GridCommandRequest.pauseSession({required String beadId})
Parks the live session driving beadId without closing its round.
const
factory
GridCommandRequest.resolveGate({required String gateId, @Default.new(<String, String>{}) Map<String, String> grades, String? rationale})
Resolves gateId, optionally correcting persisted lane grades first.
const
factory
GridCommandRequest.resumeSession({required String beadId})
Releases a parked session to re-compete for a slot and adopt its cursor.
const
factory
GridCommandRequest.rework({required String beadId, String? note, @Default.new(false) bool beyondCap, String? actor})
Retires the current session round for beadId.
const
factory
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.
const
factory

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

A switch-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 of map that fallback to returning null.
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 of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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