copyWith method
GradientPolylineOptions
copyWith({
- LogicalPixel? borderWidth,
- LogicalPixel? secondBorderWidth,
- LogicalPixel? gradientLength,
- Color? borderColor,
- Color? secondBorderColor,
- List<
Color> ? colors, - 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
);
}