copyWith method
Creates a new Circle object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
Circle copyWith({
bool? consumeTapEventsParam,
Color? fillColorParam,
LatLng? centerParam,
double? radiusParam,
Color? strokeColorParam,
int? strokeWidthParam,
bool? visibleParam,
int? zIndexParam,
VoidCallback? onTapParam,
}) {
return Circle(
circleId: circleId,
consumeTapEvents: consumeTapEventsParam ?? consumeTapEvents,
fillColor: fillColorParam ?? fillColor,
center: centerParam ?? center,
radius: radiusParam ?? radius,
strokeColor: strokeColorParam ?? strokeColor,
strokeWidth: strokeWidthParam ?? strokeWidth,
visible: visibleParam ?? visible,
zIndex: zIndexParam ?? zIndex,
onTap: onTapParam ?? onTap,
);
}