Line constructor

Line({
  1. required double x1,
  2. required double y1,
  3. required double x2,
  4. required double y2,
  5. String? id,
  6. Color? stroke,
  7. StrokeWidth? strokeWidth,
  8. StrokeDasharray? strokeDasharray,
  9. String? style,
  10. String? transform,
  11. Unit? unit,
  12. Visibility? visibility = Visibility.inherit,
})

Line constructor x1 start x coordinate point y1 start y coordinate point x2 end x coordinate point y2 end y coordinate point id widget id to made some reference in the SVG file stroke stroke line color strokeWidth stroke line width strokeDasharray stroke line dash style style custom css style transform custom css transformation unit unit used in the parameters, default is px (pixel)] visibility visibility of the element, default is inherit

Implementation

Line(
    {required this.x1,
    required this.y1,
    required this.x2,
    required this.y2,
    this.id,
    this.stroke,
    this.strokeWidth,
    this.strokeDasharray,
    this.style,
    this.transform,
    this.unit,
    this.visibility = Visibility.inherit});