decodeFromURL method

Future<MovieEntity> decodeFromURL(
  1. String url
)

Download animation file from remote server, and decode it.

Implementation

Future<MovieEntity> decodeFromURL(String url) async {
  final response = await get(Uri.parse(url));
  return decodeFromBuffer(response.bodyBytes);
}