pressBack method
Presses Back in the car: closes the alert, or goes back one screen.
Implementation
Future<void> pressBack() async {
final shownAlert = alert;
if (shownAlert != null) {
alert = null;
return _send('alertDismissed', {'alertId': shownAlert['id']});
}
if (screens.length < 2) return;
final popped = screens.removeLast();
await _send('popped', {'templateId': popped['id']});
}