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