FlLinkStyle constructor

const FlLinkStyle({
  1. Color? color,
  2. bool useGradient = false,
  3. LinearGradient? gradient,
  4. required double lineWidth,
  5. required FlLineDrawMode drawMode,
  6. required FlLinkCurveType curveType,
})

Implementation

const FlLinkStyle({
  this.color,
  this.useGradient = false,
  this.gradient,
  required this.lineWidth,
  required this.drawMode,
  required this.curveType,
}) : assert(
        useGradient == false || gradient != null,
        'Gradient must be provided if useGradient is true',
      );