retrieve method

Future<Uint8List> retrieve(
  1. String key
)

Implementation

Future<Uint8List> retrieve(String key) async {
  final res = await actor.getFunc(AssetMethod.retrieve.name)?.call([key]);
  if (res != null) {
    return res as Uint8List;
  }
  throw StateError('Request failed with the result: $res.');
}