copyWith method
Creates a copy of the PointStyle object with the specified properties overridden.
Implementation
PointStyle copyWith({
double? size,
Color? color,
}) {
return PointStyle(
size: size ?? this.size,
color: color ?? this.color,
);
}