ready property

Helper method to return null when the controller is not ready(isReady).

It is useful if you want ot call methods like goTo with the property like the following fragment:

controller.ready?.goToPage(pageNumber: 1);

Implementation

PdfViewerController? get ready => isReady ? this : null;