copyWith method

ActivePolylineOptions copyWith({
  1. Color? color,
  2. double? strokeWidth,
  3. double? borderStrokeWidth,
  4. Color? borderColor,
  5. List<Color>? gradientColors,
  6. StrokePattern? pattern,
})

Implementation

ActivePolylineOptions copyWith({
  Color? color,
  double? strokeWidth,
  double? borderStrokeWidth,
  Color? borderColor,
  List<Color>? gradientColors,
  StrokePattern? pattern,
}) {
  return ActivePolylineOptions(
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    borderStrokeWidth: borderStrokeWidth ?? this.borderStrokeWidth,
    borderColor: borderColor ?? this.borderColor,
    gradientColors: gradientColors ?? this.gradientColors,
    pattern: pattern ?? this.pattern,
  );
}