Bounds.fromLTRB constructor

Bounds.fromLTRB(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
)

Creates a Bounds from left, top, right, bottom values.

Implementation

factory Bounds.fromLTRB(
    double left, double top, double right, double bottom) {
  return Bounds(
    x: left,
    y: top,
    width: right - left,
    height: bottom - top,
  );
}