FlLine constructor
Renders a line, color it by color
,
thickness is defined by strokeWidth,
and if you want to have dashed line, you should fill dashArray,
it is a circular array of dash offsets and lengths.
For example, the array [5, 10]
would result in dashes 5 pixels long
followed by blank spaces 10 pixels long.
Implementation
const FlLine({
Color? color,
this.gradient,
this.strokeWidth = 2,
this.dashArray,
}) : color = color ??
((color == null && gradient == null) ? Colors.black : null);