icon property

ImageProvider<Object>? get icon

An image representing the app playing the track

Implementation

ImageProvider? get icon {
  if (isIOS)
    return const AssetImage('assets/applemusic.png', package: 'nowplaying');
  if (source == 'com.acmeandroid.listen')
    return const AssetImage('assets/listenapp.png', package: 'nowplaying');
  return _icons[this.source];
}