isDocument property

bool get isDocument

Whether this source wraps an existing document.

Implementation

bool get isDocument => _document != null;