getDocumentIfLoaded method
D?
getDocumentIfLoaded()
Implementation
D? getDocumentIfLoaded() {
if (!_loaded) {
var resourceContent = this.resourceContent;
if (resourceContent == null) return null;
if (resourceContent.isLoaded) {
var content = resourceContent.getContentIfLoaded();
_document = content != null ? loadDocument(content) : null;
_loaded = true;
}
}
return _document;
}