showAlert static method
Implementation
static Future<void> showAlert({
required AAAlertTemplate template,
}) async {
final bool? isCompleted = await _androidAutoController
.flutterToNativeModule(FAAChannelTypes.setAlert, {
'template': template.toJson(),
});
if (isCompleted == true) {
FlutterAndroidAutoController.currentPresentTemplate = template;
}
template.onPresent?.call(isCompleted ?? false);
}