decodeAsync method

Future<List<ID3MetataInfo>> decodeAsync()

asynchronous decoding. Read the ID3 in the audio file and return ID3MetataInfo object information.

final decoder = ID3Decoder(bytes);
final metadatas = await decoder.decodeAsync();
for (var metadata in metadatas) {
    debugPrint(metadata.toTagMap().toString());
}

Implementation

Future<List<ID3MetataInfo>> decodeAsync() {
  return Future(() {
    return decodeSync();
  });
}