AAAlertTemplate class
A template that presents a modal alert on Android Auto.
Rendered as a full-screen MessageTemplate from the Car App Library.
Unlike CarPlay, Android Auto does not support true overlay modals, so the
alert occupies the entire screen and is pushed onto the navigation stack.
Use FlutterAndroidAuto.showAlert to present it and FlutterAndroidAuto.popModal to dismiss it programmatically.
- Implemented types
Constructors
-
AAAlertTemplate({required String title, String? message, required List<
AAAlertAction> actions, dynamic onPresent(bool completed)?, String? id})
Properties
-
actions
→ List<
AAAlertAction> -
The action buttons available on the alert.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Optional body message displayed below the title.
final
- onPresent → dynamic Function(bool completed)?
-
Called when the alert finishes presenting.
completedis true when the alert was shown successfully.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Primary title shown at the top of the alert.
final
- uniqueId → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited