copyWith method

FolderViewScrollbarTheme copyWith({
  1. Color? thumbColor,
  2. Color? trackColor,
  3. double? thickness,
  4. double? radius,
  5. bool? thumbVisibility,
  6. double? hoverOpacity,
  7. double? nonHoverOpacity,
  8. Duration? hoverAnimationDuration,
  9. double? trackWidth,
  10. double? trackRadius,
  11. bool? trackVisibility,
})

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,
  );
}