map<TResult extends Object?> method

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

Implementation

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