line static method
A line path function.
This functions can either return a new path or add to existing path
.
Implementation
static Path line({
required Offset from,
required Offset to,
Path? path,
}) =>
(path ?? Path())
..moveTo(from.dx, from.dy)
..lineTo(to.dx, to.dy);