CPListItem constructor

CPListItem({
  1. required String text,
  2. String? detailText,
  3. dynamic onPress(
    1. dynamic complete(),
    2. CPListItem self
    )?,
  4. String? image,
  5. double? playbackProgress,
  6. bool? isPlaying,
  7. CPListItemPlayingIndicatorLocations? playingIndicatorLocation,
  8. 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,
});