decodeFromAssets method

Future<MovieEntity> decodeFromAssets(
  1. String path
)

Implementation

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