onPresent property

dynamic Function(bool completed)? onPresent
final

Fired when the alert presented to CarPlay. With this callback function, it can be determined whether an error was encountered while presenting, or if it was successfully opened, with the bool completed data in it.

If completed is true, the alert successfully presented. If not, you may want to show an error to the user.

Implementation

final Function(bool completed)? onPresent;