copyWith method
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,
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,
);
}