getPageRect method
Get page location. If the page does not exist in the layout, it returns null.
If the controller is not ready(isReady), the property throws some exception.
Implementation
Rect? getPageRect(int pageNumber) => _state!._pages![pageNumber - 1].rect;