dismiss static method
Dismisses the sheet.
On macOS this also removes an inspector left by the app before a hot restart, which the restarted Dart side does not know about.
Implementation
static Future<void> dismiss() async {
final mac = !kIsWeb && defaultTargetPlatform == TargetPlatform.macOS;
if (!_shown && !mac) return;
try {
await _channel.invokeMethod('dismiss');
} on MissingPluginException {
// A macOS host without the plugin's native side.
}
_reset();
}