show method

Future<void> show({
  1. bool inactive = false,
})

Shows and gives focus to the window.

Implementation

Future<void> show({bool inactive = false}) async {
  final window = _target;
  if (window == null) return;
  if (window.isMinimized) {
    window.restore();
  }
  if (inactive) {
    window.showInactive();
  } else {
    window.show();
  }
}