getAudioImage method

  1. @override
Future<Uint8List?> getAudioImage(
  1. String filePath
)
override

Implementation

@override
Future<Uint8List?> getAudioImage(String filePath) async {
  final result = await methodChannel.invokeMethod<List<Object?>>(
    'getEmbeddedPicture',
    {'filePath': filePath},
  );
  if (result == null || result.isEmpty) {
    return null;
  }

  return Uint8List.fromList(result.cast<int>());
}