copyWith method

SfTreemapThemeData copyWith({
  1. Brightness? brightness,
  2. TextStyle? legendTextStyle,
})

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);
}