scrollable method
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,
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,
);
}