copyWith method

CircleOptions copyWith({
  1. GeoPoint? position,
  2. Meter? radius,
  3. Color? color,
  4. LogicalPixel? strokeWidth,
  5. Color? strokeColor,
  6. Optional<DashedStrokeCircleOptions?>? dashedStrokeOptions,
  7. bool? visible,
  8. Optional<Object?>? userData,
  9. ZIndex? zIndex,
  10. Optional<LevelId?>? levelId,
})

Implementation

CircleOptions copyWith({
  GeoPoint? position,
  Meter? radius,
  Color? color,
  LogicalPixel? strokeWidth,
  Color? strokeColor,
  Optional<DashedStrokeCircleOptions?>? dashedStrokeOptions,
  bool? visible,
  Optional<Object?>? userData,
  ZIndex? zIndex,
  Optional<LevelId?>? levelId
}) {
  return CircleOptions(
    position: position ?? this.position,
    radius: radius ?? this.radius,
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    strokeColor: strokeColor ?? this.strokeColor,
    dashedStrokeOptions: dashedStrokeOptions != null ? dashedStrokeOptions.value : this.dashedStrokeOptions,
    visible: visible ?? this.visible,
    userData: userData != null ? userData.value : this.userData,
    zIndex: zIndex ?? this.zIndex,
    levelId: levelId != null ? levelId.value : this.levelId
  );
}