onDestroyed method

void onDestroyed(
  1. String id,
  2. void callback()
)

Called when a window is destroyed.

Implementation

void onDestroyed(String id, void Function() callback) {
  onWindowEvent(id, 'destroyed', (_) => callback());
}