copyWith method

PointStyle copyWith({
  1. double? size,
  2. Color? color,
  3. double? altitude,
  4. int? transitionDuration,
  5. bool? merge,
})

Creates a copy of the PointStyle object with the specified properties overridden.

Implementation

PointStyle copyWith({
  double? size,
  Color? color,
  double? altitude,
  int? transitionDuration,
  bool? merge,
}) {
  return PointStyle(
    size: size ?? this.size,
    color: color ?? this.color,
    altitude: altitude ?? this.altitude,
    transitionDuration: transitionDuration ?? this.transitionDuration,
    merge: merge ?? this.merge,
  );
}