copyWith method

LineStyle copyWith({
  1. Color? color,
  2. double? thickness,
  3. bool? hasArea,
  4. double? markerRadius,
  5. ({Color end, Color start})? areaGradientColors,
})

Creates a copy of this object.

Implementation

LineStyle copyWith({
  Color? color,
  double? thickness,
  bool? hasArea,
  double? markerRadius,
  ({Color start, Color end})? areaGradientColors,
}) => LineStyle(
  color: color ?? this.color,
  thickness: thickness ?? this.thickness,
  hasArea: hasArea ?? this.hasArea,
  markerRadius: markerRadius ?? this.markerRadius,
  areaGradientColors: areaGradientColors ?? this.areaGradientColors,
);