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