isReady property

bool get isReady

Whether the controller is ready or not.

If the controller is not ready, almost all methods on PdfViewerController won't work (throw some exception). For certain operations, it may be easier to use ready method to get PdfViewerController? not to execute methods unless it is ready.

Implementation

bool get isReady => _state?._pages != null;