copyWith method

GradientPolylineOptions copyWith({
  1. LogicalPixel? borderWidth,
  2. LogicalPixel? secondBorderWidth,
  3. LogicalPixel? gradientLength,
  4. Color? borderColor,
  5. Color? secondBorderColor,
  6. List<Color>? colors,
  7. ByteData? colorIndices,
})

Implementation

GradientPolylineOptions copyWith({
  LogicalPixel? borderWidth,
  LogicalPixel? secondBorderWidth,
  LogicalPixel? gradientLength,
  Color? borderColor,
  Color? secondBorderColor,
  List<Color>? colors,
  ByteData? colorIndices
}) {
  return GradientPolylineOptions(
    borderWidth: borderWidth ?? this.borderWidth,
    secondBorderWidth: secondBorderWidth ?? this.secondBorderWidth,
    gradientLength: gradientLength ?? this.gradientLength,
    borderColor: borderColor ?? this.borderColor,
    secondBorderColor: secondBorderColor ?? this.secondBorderColor,
    colors: colors ?? this.colors,
    colorIndices: colorIndices ?? this.colorIndices
  );
}