scrollable method

SingleChildScrollView scrollable({
  1. Key? key,
  2. Axis scrollDirection = .vertical,
  3. bool reverse = false,
  4. EdgeInsetsGeometry? padding,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. ScrollController? controller,
  8. Widget? child,
  9. DragStartBehavior dragStartBehavior = .start,
  10. Clip clipBehavior = .hardEdge,
  11. HitTestBehavior hitTestBehavior = .opaque,
  12. String? restorationId,
  13. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
})

Returns a new scrollable widget.

Implementation

SingleChildScrollView scrollable({
  Key? key,
  Axis scrollDirection = .vertical,
  bool reverse = false,
  EdgeInsetsGeometry? padding,
  bool? primary,
  ScrollPhysics? physics,
  ScrollController? controller,
  Widget? child,
  DragStartBehavior dragStartBehavior = .start,
  Clip clipBehavior = .hardEdge,
  HitTestBehavior hitTestBehavior = .opaque,
  String? restorationId,
  ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
}) {
  return SingleChildScrollView(
    key: key,
    scrollDirection: scrollDirection,
    reverse: reverse,
    controller: controller,
    primary: primary,
    physics: physics,
    padding: padding,
    dragStartBehavior: dragStartBehavior,
    clipBehavior: clipBehavior,
    hitTestBehavior: hitTestBehavior,
    restorationId: restorationId,
    keyboardDismissBehavior: keyboardDismissBehavior,
    child: this,
  );
}