copyWith method
MFPolyline
copyWith({
- Color? colorParam,
- bool? consumeTapEventsParam,
- MFPolylineStyle? styleParam,
- List<
MFLatLng> ? pointsParam, - bool? visibleParam,
- int? widthParam,
- int? zIndexParam,
- VoidCallback? onTapParam,
Creates a new MFPolyline object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
MFPolyline copyWith({
Color? colorParam,
bool? consumeTapEventsParam,
MFPolylineStyle? styleParam,
List<MFLatLng>? pointsParam,
bool? visibleParam,
int? widthParam,
int? zIndexParam,
VoidCallback? onTapParam,
}) {
return MFPolyline(
polylineId: polylineId,
color: colorParam ?? color,
consumeTapEvents: consumeTapEventsParam ?? consumeTapEvents,
style: styleParam ?? style,
points: pointsParam ?? points,
visible: visibleParam ?? visible,
width: widthParam ?? width,
onTap: onTapParam ?? onTap,
zIndex: zIndexParam ?? zIndex,
);
}