document property

NutrientDocumentInterface document
final

The document that finished loading.

This is the same live instance as controller.document, carried on the event so handlers can use it directly — e.g. event.document.getPageCount() — without closing over the controller.

Note: the instance is a proxy that resolves against the document currently attached to the view at call time, not a snapshot taken when the event fired. In the rare case where a view loads a second document before a buffered event is handled, calls resolve against the newer one.

Implementation

final NutrientDocumentInterface document;