when<TResult extends Object?> method

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

Implementation

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