getBytes abstract method

Future<Uint8List?> getBytes(
  1. String key
)

Retrieves a byte array by its key.

This method fetches a byte array (Uint8List) previously stored using setBytes. If no value exists for the given key, or the stored value is not a byte array, this method returns null.

Parameters:

  • key: The unique identifier of the byte array to retrieve.

Returns a Future that completes with the stored byte array if found, or null if the key doesn't exist or the value is not a byte array.

Throws:

Implementation

Future<Uint8List?> getBytes(String key);