setDocumentEdited static method

Future<void> setDocumentEdited()

Sets the document to be edited.

This will change the appearance of the close button on the titlebar:

image

This method is only available on macOS.

Implementation

static Future<void> setDocumentEdited() async {
  WindowManipulator.setDocumentEdited();
}