maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult intSelection(
    1. IntSelectionCallback value
    )?,
  2. TResult boolSelection(
    1. BoolSelectionCallback value
    )?,
  3. TResult navigatorPushNamed(
    1. NavigationPushNamedCallback value
    )?,
  4. TResult navigatorPop(
    1. NavigationPopCallback value
    )?,
  5. TResult launchUrl(
    1. UrlCallback value
    )?,
  6. TResult copyClipboard(
    1. CopyClipboardCallback value
    )?,
  7. TResult networkRequest(
    1. HttpRequestCallback value
    )?,
  8. TResult showSnackBar(
    1. ShowSnackBarCallback value
    )?,
  9. TResult hideCurrentSnackBar(
    1. HideCurrentSnackBarCallback value
    )?,
  10. TResult removeCurrentSnackBar(
    1. RemoveCurrentSnackBarCallback value
    )?,
  11. TResult clearMaterialBanners(
    1. ClearMaterialBannersCallback value
    )?,
  12. TResult hideCurrentMaterialBanner(
    1. HideCurrentMaterialBannerCallback value
    )?,
  13. TResult removeCurrentMaterialBanner(
    1. RemoveCurrentMaterialBannerCallback value
    )?,
  14. TResult showMaterialBanner(
    1. ShowMaterialBannerCallback value
    )?,
  15. TResult empty(
    1. EmptyCallback value
    )?,
  16. TResult reload(
    1. ReloadCallback value
    )?,
  17. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(IntSelectionCallback value)? intSelection,
      TResult Function(BoolSelectionCallback value)? boolSelection,
      TResult Function(NavigationPushNamedCallback value)? navigatorPushNamed,
      TResult Function(NavigationPopCallback value)? navigatorPop,
      TResult Function(UrlCallback value)? launchUrl,
      TResult Function(CopyClipboardCallback value)? copyClipboard,
      TResult Function(HttpRequestCallback value)? networkRequest,
      TResult Function(ShowSnackBarCallback value)? showSnackBar,
      TResult Function(HideCurrentSnackBarCallback value)? hideCurrentSnackBar,
      TResult Function(RemoveCurrentSnackBarCallback value)?
          removeCurrentSnackBar,
      TResult Function(ClearMaterialBannersCallback value)? clearMaterialBanners,
      TResult Function(HideCurrentMaterialBannerCallback value)?
          hideCurrentMaterialBanner,
      TResult Function(RemoveCurrentMaterialBannerCallback value)?
          removeCurrentMaterialBanner,
      TResult Function(ShowMaterialBannerCallback value)? showMaterialBanner,
      TResult Function(EmptyCallback value)? empty,
      TResult Function(ReloadCallback value)? reload,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;