Rect.fromLTRB constructor Null safety

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