copyWith method

PolylineMapObject copyWith({
  1. Polyline? polyline,
  2. double? zIndex,
  3. TapCallback<PolylineMapObject>? onTap,
  4. bool? consumeTapEvents,
  5. bool? isVisible,
  6. Color? strokeColor,
  7. double? strokeWidth,
  8. Color? outlineColor,
  9. double? outlineWidth,
  10. double? dashLength,
  11. double? dashOffset,
  12. double? gapLength,
  13. double? turnRadius,
  14. double? arcApproximationStep,
  15. double? gradientLength,
  16. bool? isInnerOutlineEnabled,
})

Implementation

PolylineMapObject copyWith({
  Polyline? polyline,
  double? zIndex,
  TapCallback<PolylineMapObject>? onTap,
  bool? consumeTapEvents,
  bool? isVisible,
  Color? strokeColor,
  double? strokeWidth,
  Color? outlineColor,
  double? outlineWidth,
  double? dashLength,
  double? dashOffset,
  double? gapLength,
  double? turnRadius,
  double? arcApproximationStep,
  double? gradientLength,
  bool? isInnerOutlineEnabled,
}) {
  return PolylineMapObject(
    mapId: mapId,
    polyline: polyline ?? this.polyline,
    zIndex: zIndex ?? this.zIndex,
    onTap: onTap ?? this.onTap,
    consumeTapEvents: consumeTapEvents ?? this.consumeTapEvents,
    isVisible: isVisible ?? this.isVisible,
    strokeColor: strokeColor ?? this.strokeColor,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    outlineColor: outlineColor ?? this.outlineColor,
    outlineWidth: outlineWidth ?? this.outlineWidth,
    dashLength: dashLength ?? this.dashLength,
    dashOffset: dashOffset ?? this.dashOffset,
    gapLength: gapLength ?? this.gapLength,
    turnRadius: turnRadius ?? this.turnRadius,
    arcApproximationStep: arcApproximationStep ?? this.arcApproximationStep,
    gradientLength: gradientLength ?? this.gradientLength,
    isInnerOutlineEnabled: isInnerOutlineEnabled ?? this.isInnerOutlineEnabled,
  );
}