copyWith method

ScrollbarThemeData copyWith({
  1. double? thickness,
  2. double? hoveringThickness,
  3. bool? showTrackOnHover,
  4. bool? isAlwaysShown,
  5. bool? interactive,
  6. Radius? radius,
  7. Color? thumbColor,
  8. Color? hoveringThumbColor,
  9. Color? draggingThumbColor,
  10. Color? trackColor,
  11. Color? hoveringTrackColor,
  12. Color? trackBorderColor,
  13. Color? hoveringTrackBorderColor,
  14. double? crossAxisMargin,
  15. double? mainAxisMargin,
  16. 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,
  );
}