fromPoints method Null safety

Rect fromPoints(
  1. Offset a,
  2. Offset b
)

Implementation

static Rect fromPoints(Offset a, Offset b) =>
    Rect(min(a.dx, b.dx), min(a.dy, b.dy), max(a.dx, b.dx), max(a.dy, b.dy));