checkpointCompleted method

bool checkpointCompleted({
  1. required String checkpointId,
  2. required int pjNr,
  3. required int categoryIndex,
  4. required int checkpointIndex,
  5. DateTime? now,
})

Implementation

bool checkpointCompleted({
  required String checkpointId,
  required int pjNr,
  required int categoryIndex,
  required int checkpointIndex,
  DateTime? now,
}) {
  if (checkpointEditedRecently(checkpointId, now: now)) return true;
  return checkpointEditedRecently(
    checkpointKey(
      pjNr: pjNr,
      categoryIndex: categoryIndex,
      checkpointIndex: checkpointIndex,
    ),
    now: now,
  );
}