CPListItem constructor
CPListItem({
- required String text,
- String? detailText,
- dynamic onPress(
- dynamic complete(),
- CPListItem self
- String? image,
- double? playbackProgress,
- bool? isPlaying,
- CPListItemPlayingIndicatorLocations? playingIndicatorLocation,
- CPListItemAccessoryTypes? accessoryType,
Creates CPListItem that manages the content of a single row in a CPListTemplate. CarPlay manages the layout of a list item and may adjust its layout to allow for the display of auxiliary content, such as, an accessory or a Now Playing indicator. A list item can display primary text, secondary text, now playing indicators as playback progress, an accessory image and a trailing image.
Implementation
CPListItem({
required this.text,
this.detailText,
this.onPress,
this.image,
this.playbackProgress,
this.isPlaying,
this.playingIndicatorLocation,
this.accessoryType,
});