singleChildScrollView method

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

Implementation

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