loadSecret static method

Future<Uint8List?> loadSecret(
  1. String alias
)

Null means "no such secret". A locked or failing key store throws instead, so callers never mistake a temporarily unreadable key for a missing one and overwrite it.

Implementation

static Future<Uint8List?> loadSecret(String alias) async {
  try {
    return await _channel.invokeMethod<Uint8List>("loadSecret", <String, Object?>{"alias": alias});
  } on MissingPluginException {
    return null;
  }
}