mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult idle(
    1. Idle<T> value
    )?,
  2. TResult loading(
    1. Loading<T> value
    )?,
  3. TResult success(
    1. Success<T> value
    )?,
  4. TResult failure(
    1. Failure<T> value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult Function(Idle<T> value)? idle,
  TResult Function(Loading<T> value)? loading,
  TResult Function(Success<T> value)? success,
  TResult Function(Failure<T> value)? failure,
}) =>
    throw _privateConstructorUsedError;