whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? initial()?,
  2. TResult? loading()?,
  3. TResult? failure(
    1. AppException exception
    )?,
  4. TResult? success(
    1. String? message
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? initial,
  TResult? Function()? loading,
  TResult? Function(AppException exception)? failure,
  TResult? Function(String? message)? success,
}) =>
    throw _privateConstructorUsedError;