copyWith method

PointStyle copyWith({
  1. double? size,
  2. Color? color,
})

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