toPixelRect method
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,
);
}