copyWith method
Implementation
ScrollbarThemeData copyWith(ScrollbarThemeData? style) {
if (style == null) return this;
return ScrollbarThemeData(
backgroundColor: style.backgroundColor ?? backgroundColor,
scrollbarColor: style.scrollbarColor ?? scrollbarColor,
scrollbarPressingColor:
style.scrollbarPressingColor ?? scrollbarPressingColor,
hoveringThickness: style.hoveringThickness ?? hoveringThickness,
thickness: style.thickness ?? thickness,
radius: style.radius ?? radius,
hoveringRadius: style.hoveringRadius ?? hoveringRadius,
crossAxisMargin: style.crossAxisMargin ?? crossAxisMargin,
hoveringCrossAxisMargin:
style.hoveringCrossAxisMargin ?? hoveringCrossAxisMargin,
mainAxisMargin: style.mainAxisMargin ?? mainAxisMargin,
hoveringMainAxisMargin:
style.hoveringMainAxisMargin ?? hoveringMainAxisMargin,
minThumbLength: style.minThumbLength ?? minThumbLength,
hoveringTrackBorderColor:
style.hoveringTrackBorderColor ?? hoveringTrackBorderColor,
trackBorderColor: style.trackBorderColor ?? trackBorderColor,
animationCurve: style.animationCurve ?? animationCurve,
animationDuration: style.animationDuration ?? animationDuration,
);
}