maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult appBar(
    1. SliverAppBar value
    )?,
  2. TResult appBarMedium(
    1. SliverAppBarMedium value
    )?,
  3. TResult appBarLarge(
    1. SliverAppBarLarge value
    )?,
  4. TResult toBoxAdapter(
    1. SliverToBoxAdapter value
    )?,
  5. TResult fillRemaining(
    1. SliverFillRemaining value
    )?,
  6. TResult fillViewport(
    1. SliverFillViewport value
    )?,
  7. TResult fixedExtentList(
    1. SliverFixedExtentList value
    )?,
  8. TResult offstage(
    1. SliverOffstage value
    )?,
  9. TResult list(
    1. SliverList value
    )?,
  10. TResult grid(
    1. SliverGrid value
    )?,
  11. TResult ignorePointer(
    1. SliverIgnorePointer value
    )?,
  12. TResult opacity(
    1. SliverOpacity value
    )?,
  13. TResult padding(
    1. SliverPadding value
    )?,
  14. TResult prototypeExtendList(
    1. SliverPrototypeExtentList value
    )?,
  15. TResult safeArea(
    1. SliverSafeArea value
    )?,
  16. TResult visibility(
    1. SliverVisibility value
    )?,
  17. TResult visibilityMaintain(
    1. SliverVisibilityMaintain value
    )?,
  18. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(SliverAppBar value)? appBar,
      TResult Function(SliverAppBarMedium value)? appBarMedium,
      TResult Function(SliverAppBarLarge value)? appBarLarge,
      TResult Function(SliverToBoxAdapter value)? toBoxAdapter,
      TResult Function(SliverFillRemaining value)? fillRemaining,
      TResult Function(SliverFillViewport value)? fillViewport,
      TResult Function(SliverFixedExtentList value)? fixedExtentList,
      TResult Function(SliverOffstage value)? offstage,
      TResult Function(SliverList value)? list,
      TResult Function(SliverGrid value)? grid,
      TResult Function(SliverIgnorePointer value)? ignorePointer,
      TResult Function(SliverOpacity value)? opacity,
      TResult Function(SliverPadding value)? padding,
      TResult Function(SliverPrototypeExtentList value)? prototypeExtendList,
      TResult Function(SliverSafeArea value)? safeArea,
      TResult Function(SliverVisibility value)? visibility,
      TResult Function(SliverVisibilityMaintain value)? visibilityMaintain,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;