MtCarPlayRootConfig class
Configuration for the CarPlay root template.
Use the named constructors to create either a list or tab bar root:
// List root template
MtCarPlayRootConfig.list(title: 'My Music App');
// Tab bar root template
MtCarPlayRootConfig.tabBar(
title: 'My Music App',
tabBarConfig: MtCarPlayTabBarConfig(tabs: [...]),
);
Constructors
- MtCarPlayRootConfig.list({required String title, String systemIcon = 'music.note.list', String emptyViewTitle = 'No Content', String emptyViewSubtitle = 'Add content to see it here'})
-
Creates a list root template configuration.
const
- MtCarPlayRootConfig.tabBar({required String title, required MtCarPlayTabBarConfig tabBarConfig, String systemIcon = 'music.note.list', String emptyViewTitle = 'No Content', String emptyViewSubtitle = 'Add content to see it here'})
-
Creates a tab bar root template configuration.
const
Properties
- emptyViewSubtitle → String
-
Subtitle shown when the content list is empty.
final
- emptyViewTitle → String
-
Title shown when the content list is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemIcon → String
-
SF Symbol name for the root template icon.
final
- tabBarConfig → MtCarPlayTabBarConfig?
-
Configuration for tab bar template.
final
- templateType → MtCarPlayRootTemplateType
-
Type of root template.
final
- title → String
-
Title shown on the root template.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited