copyWith method

MacosScrollbarThemeData copyWith({
  1. double? thickness,
  2. double? thicknessWhileHovering,
  3. bool? showTrackOnHover,
  4. bool? thumbVisibility,
  5. Radius? radius,
  6. Color? thumbColor,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

MacosScrollbarThemeData copyWith({
  double? thickness,
  double? thicknessWhileHovering,
  bool? showTrackOnHover,
  bool? thumbVisibility,
  Radius? radius,
  Color? thumbColor,
}) {
  return MacosScrollbarThemeData(
    thickness: thickness ?? this.thickness,
    thicknessWhileHovering:
        thicknessWhileHovering ?? this.thicknessWhileHovering,
    thumbVisibility: thumbVisibility ?? this.thumbVisibility,
    radius: radius ?? this.radius,
    thumbColor: thumbColor ?? this.thumbColor,
  );
}