isSliver function

bool isSliver(
  1. Widget widget
)

Implementation

bool isSliver(Widget widget) {
  return widget is SliverAnimatedList ||
      widget is SliverList ||
      widget is SliverGrid ||
      widget is SliverAnimatedOpacity ||
      widget is SliverAppBar ||
      widget is SliverPersistentHeader ||
      widget is SliverFadeTransition ||
      widget is SliverFillRemaining ||
      widget is SliverFillViewport ||
      widget is SliverFixedExtentList ||
      widget is SliverIgnorePointer ||
      widget is SliverMultiBoxAdaptorElement ||
      widget is SliverToBoxAdapter ||
      widget is SliverLayoutBuilder ||
      widget is SliverOffstage ||
      widget is SliverOpacity ||
      widget is SliverOverlapAbsorber ||
      widget is SliverPrototypeExtentList ||
      widget is SliverReorderableList ||
      widget is SliverSafeArea ||
      widget is SliverVisibility ||
      widget is CupertinoSliverRefreshControl ||
      widget is SliverOverlapInjector ||
      widget is RenderSliverOverlapInjector ||
      widget is SliverFadeTransition;
}