copyWith method

FlLinkStyle copyWith({
  1. LinearGradient? gradient,
  2. double? lineWidth,
  3. FlLineDrawMode? drawMode,
  4. FlLinkCurveType? curveType,
})

Implementation

FlLinkStyle copyWith({
  LinearGradient? gradient,
  double? lineWidth,
  FlLineDrawMode? drawMode,
  FlLinkCurveType? curveType,
}) {
  return FlLinkStyle(
    gradient: gradient ?? this.gradient,
    lineWidth: lineWidth ?? this.lineWidth,
    drawMode: drawMode ?? this.drawMode,
    curveType: curveType ?? this.curveType,
  );
}