when<TResult extends Object?> method
Null safety
- {required TResult intSelection( ),
- required TResult boolSelection( ),
- required TResult launchUrl( ),
- required TResult copyClipboard( ),
- required TResult networkRequest(
- NetworkRequest request,
- Callback? callback
- required TResult showSnackBar(
- SnackBar snackBar
- required TResult hideCurrentSnackBar(
- SnackBarClosedReason reason
- required TResult removeCurrentSnackBar(
- SnackBarClosedReason reason
- required TResult clearMaterialBanners(
- required TResult hideCurrentMaterialBanner(
- MaterialBannerClosedReason reason
- required TResult removeCurrentMaterialBanner(
- MaterialBannerClosedReason reason
- required TResult showMaterialBanner(
- MaterialBanner materialBanner
- required TResult empty(
- required TResult reload(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(Map<String, Callback> values) intSelection,
required TResult Function(Callback trueCallback, Callback falseCallback)
boolSelection,
required TResult Function(String value, Map<String, String>? arguments)
navigatorPushNamed,
required TResult Function(Object? value) navigatorPop,
required TResult Function(
String url, String? path, Map<String, String>? params)
launchUrl,
required TResult Function(String text, Callback? callback) copyClipboard,
required TResult Function(NetworkRequest request, Callback? callback)
networkRequest,
required TResult Function(SnackBar snackBar) showSnackBar,
required TResult Function(SnackBarClosedReason reason) hideCurrentSnackBar,
required TResult Function(SnackBarClosedReason reason)
removeCurrentSnackBar,
required TResult Function() clearMaterialBanners,
required TResult Function(MaterialBannerClosedReason reason)
hideCurrentMaterialBanner,
required TResult Function(MaterialBannerClosedReason reason)
removeCurrentMaterialBanner,
required TResult Function(MaterialBanner materialBanner) showMaterialBanner,
required TResult Function() empty,
required TResult Function() reload,
}) =>
throw _privateConstructorUsedError;