mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult invalidApiKey(
    1. _InvalidApiKey value
    )?,
  2. TResult noInternetConnection(
    1. _NoInternetConnection value
    )?,
  3. TResult notFound(
    1. _NotFound value
    )?,
  4. TResult unknown(
    1. _Unknown value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult Function(_InvalidApiKey value)? invalidApiKey,
  TResult Function(_NoInternetConnection value)? noInternetConnection,
  TResult Function(_NotFound value)? notFound,
  TResult Function(_Unknown value)? unknown,
}) =>
    throw _privateConstructorUsedError;