copyWith method
- AxisDirection? direction,
- ScrollController? controller,
- ScrollPhysics? physics,
- Clip? decorationClipBehavior,
Copy the current ScrollableDetails with the given values replacing the current values.
Implementation
ScrollableDetails copyWith({
AxisDirection? direction,
ScrollController? controller,
ScrollPhysics? physics,
Clip? decorationClipBehavior,
}) {
return ScrollableDetails(
direction: direction ?? this.direction,
controller: controller ?? this.controller,
physics: physics ?? this.physics,
decorationClipBehavior: decorationClipBehavior ?? this.decorationClipBehavior,
);
}