isScroll method

Widget isScroll({
  1. Key? key,
  2. bool noScrollBehavior = true,
  3. ScrollPhysics? physics,
  4. ScrollController? scrollController,
  5. bool reverse = false,
  6. bool? primary,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

Implementation

Widget isScroll({
  Key? key,
  bool noScrollBehavior = true,
  ScrollPhysics? physics,
  ScrollController? scrollController,
  bool reverse = false,
  bool? primary,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
    noScrollBehavior
        ? ScrollConfiguration(
            behavior: NoScrollBehavior(),
            child: SingleChildScrollView(
                key: key,
                physics: physics ?? const BouncingScrollPhysics(),
                reverse: reverse,
                primary: primary,
                dragStartBehavior: dragStartBehavior,
                controller: scrollController,
                scrollDirection: direction,
                child: this))
        : SingleChildScrollView(
            key: key,
            physics: physics ?? const BouncingScrollPhysics(),
            reverse: reverse,
            primary: primary,
            dragStartBehavior: dragStartBehavior,
            controller: scrollController,
            scrollDirection: direction,
            child: this);