maybeWhen<TResult extends Object?> method

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

Implementation

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