newDocument method
Method used for constructing new Document object.
This method enables developers to override the default Document implementation.
Implementation
Document newDocument({
required Window window,
String contentType = 'text/html',
bool filled = true,
}) {
return impl.newDocument(
window: window,
contentType: contentType,
filled: filled,
);
}