getImage static method

Future<Uint8List?> getImage(
  1. String path, {
  2. bool isLocal = false,
})

Get image from storage or local

Implementation

static Future<Uint8List?> getImage(String path,
    {bool isLocal = false}) async {
  if (isLocal) {
    return getLocalImage(path);
  } else {
    return await FireUploader().getObject(path);
  }
}