copyWith method
Creates a copy of this theme with the given fields replaced with new values
Implementation
FolderViewScrollbarTheme copyWith({
Color? thumbColor,
Color? trackColor,
double? thickness,
double? radius,
bool? thumbVisibility,
double? hoverOpacity,
double? nonHoverOpacity,
Duration? hoverAnimationDuration,
double? trackWidth,
double? trackRadius,
bool? trackVisibility,
}) {
return FolderViewScrollbarTheme(
thumbColor: thumbColor ?? this.thumbColor,
trackColor: trackColor ?? this.trackColor,
thickness: thickness ?? this.thickness,
radius: radius ?? this.radius,
thumbVisibility: thumbVisibility ?? this.thumbVisibility,
hoverOpacity: hoverOpacity ?? this.hoverOpacity,
nonHoverOpacity: nonHoverOpacity ?? this.nonHoverOpacity,
hoverAnimationDuration:
hoverAnimationDuration ?? this.hoverAnimationDuration,
trackWidth: trackWidth ?? this.trackWidth,
trackRadius: trackRadius ?? this.trackRadius,
trackVisibility: trackVisibility ?? this.trackVisibility,
);
}