Rect.fromPoints constructor
Construct the smallest rectangle that encloses the given offsets, treating them as vectors from the origin.
Implementation
Rect.fromPoints(Offset a, Offset b) : this.fromLTRB(
math.min(a.dx, b.dx),
math.min(a.dy, b.dy),
math.max(a.dx, b.dx),
math.max(a.dy, b.dy),
);