copyWith method
InteractivePolyline<Object>
copyWith({
- List<
LatLng> ? points, - StrokePattern? pattern,
- double? strokeWidth,
- Color? color,
- double? borderStrokeWidth,
- Color? borderColor,
- List<
Color> ? gradientColors, - List<
double> ? colorsStop, - StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- bool? useStrokeWidthInMeter,
- R? hitValue,
- List<
PolylineOptions> ? options,
Implementation
InteractivePolyline copyWith({
List<LatLng>? points,
StrokePattern? pattern,
double? strokeWidth,
Color? color,
double? borderStrokeWidth,
Color? borderColor,
List<Color>? gradientColors,
List<double>? colorsStop,
StrokeCap? strokeCap,
StrokeJoin? strokeJoin,
bool? useStrokeWidthInMeter,
R? hitValue,
List<PolylineOptions>? options,
}) {
return InteractivePolyline(
key: key,
points: points ?? this.points,
pattern: pattern ?? this.pattern,
strokeWidth: strokeWidth ?? this.strokeWidth,
color: color ?? this.color,
borderStrokeWidth: borderStrokeWidth ?? this.borderStrokeWidth,
borderColor: borderColor ?? this.borderColor,
gradientColors: gradientColors ?? this.gradientColors,
colorsStop: colorsStop ?? this.colorsStop,
strokeCap: strokeCap ?? this.strokeCap,
strokeJoin: strokeJoin ?? this.strokeJoin,
useStrokeWidthInMeter:
useStrokeWidthInMeter ?? this.useStrokeWidthInMeter,
hitValue: hitValue ?? this.hitValue,
options: List<PolylineOptions>.of(options ?? this.options),
);
}