Rect.fromLTRB constructor

const Rect.fromLTRB(
  1. double left,
  2. double top,
  3. double right,
  4. 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), // ignore: unnecessary_null_comparison
      assert(top != null), // ignore: unnecessary_null_comparison
      assert(right != null), // ignore: unnecessary_null_comparison
      assert(bottom != null);