readBytes static method

Uint8List? readBytes(
  1. String key
)

Reads a UTF-8 byte list.

Implementation

static Uint8List? readBytes(String key) {
  final String? raw = backend.read(key);
  if (raw == null) return null;
  try {
    return base64Decode(raw);
  } on FormatException {
    return null;
  }
}