onPress property

dynamic Function(dynamic complete(), CPListItem self)? onPress
final

An optional callback function that CarPlay invokes when the user selects the list item.

Implementation

final Function(Function() complete, CPListItem self)? onPress;