copyWith method
Creates a new HeatmapGradient object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
HeatmapGradient copyWith({
List<HeatmapGradientColor>? colorsParam,
int? colorMapSizeParam,
}) {
return HeatmapGradient(
colorsParam ?? colors,
colorMapSize: colorMapSizeParam ?? colorMapSize,
);
}