toPixelRect method

Rect toPixelRect(
  1. Size frameSize
)

Converts normalized coordinates to pixel Rect based on overall frame size.

Implementation

Rect toPixelRect(Size frameSize) {
  return Rect.fromLTWH(
    left * frameSize.width,
    top * frameSize.height,
    width * frameSize.width,
    height * frameSize.height,
  );
}