maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<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
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

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