setDocumentEdited static method
Sets the document to be edited.
This changes the appearance of the close button on the titlebar:

Implementation
static Future<void> setDocumentEdited() async {
await _completer.future;
await _windowManipulatorMethodChannel.invokeMethod('setDocumentEdited');
}