CPListItem constructor
CPListItem({
- String? text,
- String? detailText,
- FutureOr<
void> onPress(- dynamic complete(),
- CPListItem self
- String? image,
- AutoImageTint? imageTint,
- String? accessoryImage,
- String? trailingImage,
- AutoImageTint? trailingImageTint,
- double? playbackProgress,
- bool? isPlaying,
- CPListItemPlayingIndicatorLocation? playingIndicatorLocation,
- CPListItemAccessoryType? accessoryType,
- String? id,
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({
super.text,
this.detailText,
this.onPress,
this.image,
this.imageTint,
this.accessoryImage,
this.trailingImage,
this.trailingImageTint,
this.playbackProgress,
this.isPlaying,
this.playingIndicatorLocation,
this.accessoryType,
String? id,
}) : _elementId = id ?? const Uuid().v4();