destroy method

Future<void> destroy()

Force closing the window, past setPreventClose.

Closing the app's last window ends the app, as the platform's runner decides.

Implementation

Future<void> destroy() async {
  _isDestroying = true;
  await close();
}