setImage method
Updating the image which will be displayed on the leading edge of the list item cell.
Supports these formats:
- Asset path:
images/flutter_logo.pngfrom pubspec.yaml assets - SVG asset:
images/icon.svgrasterized to PNG before native display - File path:
file:///path/to/image.pnglocal file on device - Network URL:
https://example.com/image.pngremote image
Implementation
void setImage(String image, {AutoImageTint? imageTint}) {
this.image = image;
if (imageTint != null) this.imageTint = imageTint;
FlutterCarPlayController.updateCPListItem(this);
}