customDecoder function
Implementation
Future<LottieComposition?> customDecoder(List<int> bytes) {
return LottieComposition.decodeZip(
bytes,
filePicker: (files) {
return files.firstWhereOrNull(
(f) => f.name.startsWith('animations/') && f.name.endsWith('.json'),
);
},
);
}