getString static method

Future<String?> getString(
  1. String key
)

Reads a string value from persistent storage under the specified app group.

If the persistent storage does not contains key, then null will be returned

Implementation

static Future<String?> getString(String key) async {
  return await _channel.invokeMethod('getString', {'key': key});
}