RoomWork class

Constructors

RoomWork({int? open, String? room, Map<String, int> status = const {}, int? total, int? updated})
Returns a new RoomWork instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
open ↔ int?
Open is how many items are still work: everything whose status does not end it. It is the number a channel header shows.
getter/setter pair
room ↔ String?
Room is the room these counts are for, echoed back as it was resolved.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ Map<String, int>
Status is the count per board column, carrying EVERY column this surface knows — an empty column reads 0 rather than being absent, so a caller can render the board without inventing the vocabulary. The keys are the same closed set every other operation here validates against.
getter/setter pair
total ↔ int?
Total is every item bound to this room, settled ones included, so Total minus Open is what the room has finished.
getter/setter pair
updated ↔ int?
Updated is when anything in this room's work last moved, in unix seconds. ABSENT when the room has no work at all: zero would read as the epoch, and a room nobody has filed anything in has no last activity rather than an infinitely old one. Total is 0 in exactly that case.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → RoomWork?
Returns a new RoomWork instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RoomWork>
mapFromJson(dynamic json) → Map<String, RoomWork>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RoomWork>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.