root property

Gets the body for the current page.

Caches the HtmlPageLoaderElement used between calls to allow listeners to persist.

Implementation

@override
HtmlPageLoaderElement get root =>
    _cachedRoot ??= HtmlPageLoaderElement.createFromElement(document.body,
        externalSyncFn: syncFn);