setDocumentEdited static method

Future<void> setDocumentEdited()

Sets the document to be edited.

This changes the appearance of the close button on the titlebar:

image

Implementation

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