decodeFromAssets method
Implementation
Future<MovieEntity> decodeFromAssets(String path) async {
final data = await rootBundle.load(path);
return decodeFromBuffer(
data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes),
);
}
Future<MovieEntity> decodeFromAssets(String path) async {
final data = await rootBundle.load(path);
return decodeFromBuffer(
data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes),
);
}