copyWith method

TreemapTooltipSettings copyWith(
  1. {Color? color,
  2. double? hideDelay,
  3. Color? borderColor,
  4. double? borderWidth,
  5. BorderRadiusGeometry? borderRadius}
)

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

Implementation

TreemapTooltipSettings copyWith({
  Color? color,
  double? hideDelay,
  Color? borderColor,
  double? borderWidth,
  BorderRadiusGeometry? borderRadius,
}) {
  return TreemapTooltipSettings(
      color: color ?? this.color,
      hideDelay: hideDelay ?? this.hideDelay,
      borderColor: borderColor ?? this.borderColor,
      borderWidth: borderWidth ?? this.borderWidth,
      borderRadius: borderRadius ?? this.borderRadius);
}