retrieve method

Future<Uint8List> retrieve(
  1. String key
)

Implementation

Future<Uint8List> retrieve(String key) async {
  try {
    var res = await (actor.getFunc(AssetMethod.retrieve)?.call([key]));
    if (res != null) {
      return (res as Uint8List);
    }
    throw "Cannot get result but $res";
  } catch (e) {
    rethrow;
  }
}