updateTexts method

void updateTexts({
  1. String? text,
  2. String? detailText,
})

Updating the list item's both the primary and detail text at the same time.

Implementation

void updateTexts({String? text, String? detailText}) {
  this.text = text ?? this.text;
  this.detailText = detailText ?? this.detailText;
  FlutterCarPlayController.updateCPListItem(this);
}