newDocument method

Document newDocument({
  1. required Window window,
  2. String contentType = 'text/html',
  3. bool filled = true,
})

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,
  );
}