requestClose method

void requestClose(
  1. String reason
)

Asks the visible game to close with reason. A game that never committed still frees the slot. Never throws.

Implementation

void requestClose(String reason) {
  try {
    if (!_visible && _slot == GameLaunchSlot.free) return;
    try {
      _closeRequests.add(reason);
    } catch (_) {}
  } catch (_) {}
}