load method

Future<void> load(
  1. List<int> bytes
)

Processes the next frame and stores the result in image.

Implementation

Future<void> load(List<int> bytes) async {
	isLoading = true;
	final buffer = Uint8List.fromList(bytes.toList());
	codec = await ui.instantiateImageCodec(buffer);
	final frame = await codec!.getNextFrame();
	image = frame.image;
	isLoading = false;
}