copyWith method
TreemapTooltipSettings
copyWith({
- Color? color,
- double? hideDelay,
- Color? borderColor,
- double? borderWidth,
- 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);
}