copyWith method
Creates a copy of this treemap theme data object with the matching fields replaced with the non-null parameter values.
Implementation
SfTreemapThemeData copyWith({
Brightness? brightness,
TextStyle? legendTextStyle,
}) {
return SfTreemapThemeData.raw(
brightness: brightness,
legendTextStyle: legendTextStyle ?? this.legendTextStyle);
}