maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult initial(
    1. _Initial<T> value
    )?,
  2. TResult data(
    1. _Data<T> value
    )?,
  3. TResult loading(
    1. _Loading<T> value
    )?,
  4. TResult error(
    1. _Error<T> value
    )?,
  5. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(_Initial<T> value)? initial,
      TResult Function(_Data<T> value)? data,
      TResult Function(_Loading<T> value)? loading,
      TResult Function(_Error<T> value)? error,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;