when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult initial(),
  2. required TResult loadAttendanceRegisters(
    1. List<AttendanceRegisterModel> registers,
    2. int limit,
    3. int offset
    ),
  3. required TResult loadSelectedRegister(
    1. List<AttendanceRegisterModel> registers,
    2. String registerID
    ),
  4. required TResult loadMoreAttendanceRegisters(
    1. int? limit,
    2. int? offset
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() initial,
  required TResult Function(
          List<AttendanceRegisterModel> registers, int limit, int offset)
      loadAttendanceRegisters,
  required TResult Function(
          List<AttendanceRegisterModel> registers, String registerID)
      loadSelectedRegister,
  required TResult Function(int? limit, int? offset)
      loadMoreAttendanceRegisters,
}) =>
    throw _privateConstructorUsedError;