maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult registerLoading()?,
  2. TResult registerLoaded(
    1. List<AttendanceRegisterModel> registers,
    2. int offset,
    3. int limit
    )?,
  3. TResult selectedRegisterLoaded(
    1. AttendanceRegisterModel? selectedRegister
    )?,
  4. TResult registerError(
    1. String message
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? registerLoading,
  TResult Function(
          List<AttendanceRegisterModel> registers, int offset, int limit)?
      registerLoaded,
  TResult Function(AttendanceRegisterModel? selectedRegister)?
      selectedRegisterLoaded,
  TResult Function(String message)? registerError,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;