close method

Future<void> close()

Implementation

Future<void> close() async {
  try {
    if (overlayWindowId != null) {
      await messageChannel?.send(OverlayMessage(overlayWindowId!, "Close", 'Action').toJson());
    }
  } catch (e) {
    log('close error: $e');
  }
}