size property
Total size of the current frame.
This is guaranteed not to change during rendering.
If your app listens for a resize event, it should ignore the event for any calculations that are used to render the current frame and use this value instead.
Implementation
Rect get size => _buffer.area();