loadImage method

  1. @override
Future<Uint8List> loadImage()
override

Load the image.

Implementation

@override
Future<Uint8List> loadImage() async {
  final ByteData imageData =
      await NetworkAssetBundle(Uri.parse(url)).load("");
  return imageData.buffer.asUint8List();
}