copyWith method

MFPolyline copyWith({
  1. Color? colorParam,
  2. bool? consumeTapEventsParam,
  3. MFPolylineStyle? styleParam,
  4. List<MFLatLng>? pointsParam,
  5. bool? visibleParam,
  6. int? widthParam,
  7. int? zIndexParam,
  8. 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,
  );
}