Rect toRect(Rect container)

Convert this RelativeRect to a Rect, in the coordinate space of the container.

Source

Rect toRect(Rect container) {
  return new Rect.fromLTRB(left, top, container.width - right, container.height - bottom);
}