copy method
Polyline
copy(
{ - Color? strokeColor,
- num? strokeWidth,
- double? strokeOpacity,
- StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- PathFillType? pathFillType,
- List<Color>? gradientStrokeColors,
- List<double>? gradientStrokeStops,
- bool? isDotted,
- dynamic data,
})
Implementation
Polyline copy({
Color? strokeColor,
num? strokeWidth,
double? strokeOpacity,
StrokeCap? strokeCap,
StrokeJoin? strokeJoin,
PathFillType? pathFillType,
List<Color>? gradientStrokeColors,
List<double>? gradientStrokeStops,
bool? isDotted,
dynamic data,
}) {
return Polyline(
latlngs,
strokeColor: strokeColor ?? this.strokeColor,
strokeWidth: strokeWidth as double? ?? this.strokeWidth,
strokeOpacity: strokeOpacity ?? this.strokeOpacity,
strokeCap: strokeCap ?? this.strokeCap,
strokeJoin: strokeJoin ?? this.strokeJoin,
pathFillType: pathFillType ?? this.pathFillType,
gradientStrokeColors: gradientStrokeColors ?? this.gradientStrokeColors,
gradientStrokeStops: gradientStrokeStops ?? this.gradientStrokeStops,
isDotted: isDotted ?? this.isDotted,
data: data ?? this.data,
);
}