copyWith method

ScrollableDetails copyWith({
  1. AxisDirection? direction,
  2. ScrollController? controller,
  3. ScrollPhysics? physics,
  4. 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,
  );
}