whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;