static Rect2D union(Rect2D a, Rect2D b) => Rect2D.fromLTRB( math.min(a.left, b.left), math.min(a.top, b.top), math.max(a.right, b.right), math.max(a.bottom, b.bottom), );