toRect method

Rect toRect()

Converts this math Rectangle into an ui Rect.

Implementation

Rect toRect() {
  return Rect.fromLTWH(
    left.toDouble(),
    top.toDouble(),
    width.toDouble(),
    height.toDouble(),
  );
}