setDefaultArtwork method

Future<void> setDefaultArtwork(
  1. String image
)

Set the default image in the notification panel

Implementation

Future<void> setDefaultArtwork(String image) async {
  final byteData = image.startsWith('http')
      ? await NetworkAssetBundle(Uri.parse(image)).load(image)
      : await rootBundle.load(image);

  _defaultArtworkChannel.send(byteData);
}