copyWith method

InteractivePolyline<Object> copyWith({
  1. List<LatLng>? points,
  2. StrokePattern? pattern,
  3. double? strokeWidth,
  4. Color? color,
  5. double? borderStrokeWidth,
  6. Color? borderColor,
  7. List<Color>? gradientColors,
  8. List<double>? colorsStop,
  9. StrokeCap? strokeCap,
  10. StrokeJoin? strokeJoin,
  11. bool? useStrokeWidthInMeter,
  12. R? hitValue,
  13. 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),
  );
}