copyWith method
ScrollbarThemeData
copyWith({
- double? thickness,
- double? hoveringThickness,
- bool? showTrackOnHover,
- bool? isAlwaysShown,
- bool? interactive,
- Radius? radius,
- Color? thumbColor,
- Color? hoveringThumbColor,
- Color? draggingThumbColor,
- Color? trackColor,
- Color? hoveringTrackColor,
- Color? trackBorderColor,
- Color? hoveringTrackBorderColor,
- double? crossAxisMargin,
- double? mainAxisMargin,
- double? minThumbLength,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ScrollbarThemeData copyWith({
double? thickness,
double? hoveringThickness,
bool? showTrackOnHover,
bool? isAlwaysShown,
bool? interactive,
Radius? radius,
Color? thumbColor,
Color? hoveringThumbColor,
Color? draggingThumbColor,
Color? trackColor,
Color? hoveringTrackColor,
Color? trackBorderColor,
Color? hoveringTrackBorderColor,
double? crossAxisMargin,
double? mainAxisMargin,
double? minThumbLength,
}) {
return ScrollbarThemeData(
thickness: thickness ?? this.thickness,
hoveringThickness: hoveringThickness ?? this.hoveringThickness,
showTrackOnHover: showTrackOnHover ?? this.showTrackOnHover,
isAlwaysShown: isAlwaysShown ?? this.isAlwaysShown,
interactive: interactive ?? this.interactive,
radius: radius ?? this.radius,
thumbColor: thumbColor ?? this.thumbColor,
hoveringThumbColor: hoveringThumbColor ?? this.hoveringThumbColor,
draggingThumbColor: draggingThumbColor ?? this.draggingThumbColor,
trackColor: trackColor ?? this.trackColor,
hoveringTrackColor: hoveringTrackColor ?? this.hoveringTrackColor,
trackBorderColor: trackBorderColor ?? this.trackBorderColor,
hoveringTrackBorderColor:
hoveringTrackBorderColor ?? this.hoveringTrackBorderColor,
crossAxisMargin: crossAxisMargin ?? this.crossAxisMargin,
mainAxisMargin: mainAxisMargin ?? this.mainAxisMargin,
minThumbLength: minThumbLength ?? this.minThumbLength,
);
}