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(this.left, this.top, this.right, this.bottom)
  : assert(left != null),
    assert(top != null),
    assert(right != null),
    assert(bottom != null);