AATabBarTemplate class
A container template that displays multiple child templates as tabs on
Android Auto. Rendered as TabTemplate from the Car App Library (API 6+).
Each child AATemplate is shown in its own tab. The tab's label is taken from AAListTemplate.tabTitle (falling back to AAListTemplate.title). An optional tab icon can be provided via AAListTemplate.systemIcon (mapped to a CarIcon built-in) or AAListTemplate.iconUrl (loaded async).
Currently supported child template types: AAListTemplate.
Devices that do not support API level 6 will fall back to showing the first
tab's content as a plain ListTemplate.
- Implemented types
Constructors
-
AATabBarTemplate({required List<
AATemplate> tabs, String? id})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tabs
→ List<
AATemplate> -
The templates shown in each tab (max 5, per Android Auto restrictions).
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
-
updateTabs(
List< AATemplate> newTabs) → void - Updates the tabs list in-place (mirrors CPTabBarTemplate.updateTemplates).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited