EasyScrollList.optionalScroll constructor

EasyScrollList.optionalScroll({
  1. required List<Widget> children,
  2. required bool isScrollable,
  3. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  4. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  5. ScrollController? scrollController,
  6. ScrollPhysics? scrollPhysics,
  7. Axis scrollDirection = Axis.vertical,
  8. Widget? seperator,
  9. dynamic onEndOfPage()?,
  10. bool showLoadingSpinnerAtEnd = false,
  11. Widget? loadingSpinner,
  12. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  13. bool expand = false,
})

Implementation

factory EasyScrollList.optionalScroll({
  required List<Widget> children,
  required bool isScrollable,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  ScrollController? scrollController,
  ScrollPhysics? scrollPhysics,
  Axis scrollDirection = Axis.vertical,
  Widget? seperator,
  Function()? onEndOfPage,
  bool showLoadingSpinnerAtEnd = false,
  Widget? loadingSpinner,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  bool expand = false,
}) {
  return EasyScrollList(
    children: children,
    isScrollable: isScrollable,
    crossAxisAlignment: crossAxisAlignment,
    mainAxisAlignment: mainAxisAlignment,
    scrollController: scrollController,
    scrollPhysics: scrollPhysics,
    scrollDirection: scrollDirection,
    separator: seperator,
    onEndOfPage: onEndOfPage,
    showLoadingSpinnerAtEnd: showLoadingSpinnerAtEnd,
    loadingSpinner: loadingSpinner,
    keyboardDismissBehavior: keyboardDismissBehavior,
    expand: expand,
  );
}