mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? empty(
    1. UserEmptyState value
    )?,
  2. TResult? loading(
    1. UserLoadingState value
    )?,
  3. TResult? user(
    1. UserUserState value
    )?,
  4. TResult? error(
    1. UserErrorState value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(UserEmptyState value)? empty,
  TResult? Function(UserLoadingState value)? loading,
  TResult? Function(UserUserState value)? user,
  TResult? Function(UserErrorState value)? error,
}) =>
    throw _privateConstructorUsedError;