Rect.fromLTRB constructor

const Rect.fromLTRB(double left double top double right double bottom)

Construct a rectangle from its left, top, right, and bottom edges.

Implementation

@pragma('vm:entry-point')
    const Rect.fromLTRB(double left, double top, double right, double bottom)
        : left = left ?? 0.0,
          right = right ?? 0.0,
          top = top ?? 0.0,
          bottom = bottom ?? 0.0,
          assert(left != null),
          assert(top != null),
          assert(right != null),
          assert(bottom != null);