decodeFromAssets method

Future<MovieEntity> decodeFromAssets(
  1. String path
)

Download animation file from bundle assets, and decode it.

Implementation

Future<MovieEntity> decodeFromAssets(String path) async {
  return decodeFromBuffer((await rootBundle.load(path)).buffer.asUint8List());
}