mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult loading(
    1. PromiseLoading<T> value
    )?,
  2. TResult error(
    1. PromiseError<T> value
    )?,
  3. TResult data(
    1. PromiseData<T> value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult Function(PromiseLoading<T> value)? loading,
  TResult Function(PromiseError<T> value)? error,
  TResult Function(PromiseData<T> value)? data,
}) =>
    throw _privateConstructorUsedError;