setDocumentEdited static method
Sets the document to be edited.
This will change the appearance of the close button on the titlebar:
This method is only available on macOS.
Implementation
static Future<void> setDocumentEdited() async {
WindowManipulator.setDocumentEdited();
}