when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. {required TResult intSelection(
    1. Map<String, Callback> values
    ),
  2. required TResult boolSelection(
    1. Callback trueCallback,
    2. Callback falseCallback
    ),
  3. required TResult navigatorPushNamed(
    1. String value,
    2. Map<String, String>? arguments
    ),
  4. required TResult navigatorPop(
    1. Object? value
    ),
  5. required TResult launchUrl(
    1. String url,
    2. String? path,
    3. Map<String, String>? params
    ),
  6. required TResult copyClipboard(
    1. String text,
    2. Callback? callback
    ),
  7. required TResult networkRequest(
    1. NetworkRequest request,
    2. Callback? callback
    ),
  8. required TResult showSnackBar(
    1. SnackBar snackBar
    ),
  9. required TResult hideCurrentSnackBar(
    1. SnackBarClosedReason reason
    ),
  10. required TResult removeCurrentSnackBar(
    1. SnackBarClosedReason reason
    ),
  11. required TResult clearMaterialBanners(
      ),
    1. required TResult hideCurrentMaterialBanner(
      1. MaterialBannerClosedReason reason
      ),
    2. required TResult removeCurrentMaterialBanner(
      1. MaterialBannerClosedReason reason
      ),
    3. required TResult showMaterialBanner(
      1. MaterialBanner materialBanner
      ),
    4. required TResult empty(
        ),
      1. 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;