maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult pass()?,
- TResult wrap()?,
- TResult loading()?,
- TResult widget(
- Widget widget
- TResult none()?,
- TResult action(
- GuardCheckResult action(
- BuildContext,
- WidgetRef
- GuardCheckResult action(
- TResult error(
- dynamic error,
- StackTrace? stackTrace
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? pass,
TResult Function(Widget Function({required Widget child}) builder)? wrap,
TResult Function()? loading,
TResult Function(Widget widget)? widget,
TResult Function()? none,
TResult Function(GuardCheckResult Function(BuildContext, WidgetRef) action)?
action,
TResult Function(dynamic error, StackTrace? stackTrace)? error,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;