CategoryProgressState class

Properties

hashCode int
The hash code for this object.
no setterinherited
revision ValueNotifier<int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkpointAdded({required String categoryId}) → void
checkpointCompleted({required String checkpointId, required int pjNr, required int categoryIndex, required int checkpointIndex, DateTime? now}) bool
checkpointEditedRecently(String checkpointKey, {DateTime? now}) bool
checkpointRemoved({required String categoryId, required String checkpointId, required int pjNr, required int categoryIndex, required int checkpointIndex}) → void
clear(String categoryId) → void
entryFor(String categoryId, {DateTime? now}) CategoryProgressEntry?
markCheckpointEdited(String checkpointKey, {DateTime? editedAt}) → void
markCheckpointEditedByCoordinates({required int pjNr, required int categoryIndex, required int checkpointIndex, String? categoryId, String? checkpointId, DateTime? editedAt}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
progressFor(String categoryId, {DateTime? now}) double
registerCategory({required String categoryId, required int pjNr, required int categoryIndex, required int totalCheckpoints}) → void
reset() → void
resetAllInspectionProgress() → void
setTotal({required String categoryId, required int totalCheckpoints}) → void
toString() String
A string representation of this object.
inherited
totalFor(String categoryId) int?
upsert({required String categoryId, required int totalCheckpoints, required int completedCheckpoints, DateTime? updatedAt}) → void

Operators

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

Static Properties

instance CategoryProgressState
final

Static Methods

categoryCoordinateKey({required int pjNr, required int categoryIndex}) String
checkpointKey({required int pjNr, required int categoryIndex, required int checkpointIndex}) String

Constants

recentWindow → const Duration