copyWith method
实际copy函数
Implementation
Polyline copyWith({
List<LatLng>? pointsParam,
double? widthParam,
int? zIndexParam,
bool? visibleParam,
double? alphaParam,
DashLineType? dashLineTypeParam,
CapType? capTypeParam,
JoinType? joinTypeParam,
BitmapDescriptor? customTextureParam,
ArgumentCallback<String>? onTapParam,
Color? colorParam,
}) {
Polyline copyPolyline = Polyline(
points: pointsParam ?? points,
width: widthParam ?? width,
visible: visibleParam ?? visible,
geodesic: geodesic,
alpha: alphaParam ?? alpha,
dashLineType: dashLineTypeParam ?? dashLineType,
capType: capTypeParam ?? capType,
joinType: joinTypeParam ?? joinType,
customTexture: customTextureParam ?? customTexture,
onTap: onTapParam ?? onTap,
color: colorParam ?? color,
);
copyPolyline.setIdForCopy(id);
return copyPolyline;
}