LinePainter constructor

LinePainter({
  1. required Offset p1,
  2. required Offset p2,
  3. required Color color,
  4. String type = "normal",
  5. double strokeWidth = 1,
})

Implementation

LinePainter(
    {required this.p1,
    required this.p2,
    required this.color,
    this.type = "normal", // normal | dashed
    this.strokeWidth = 1});