getInt static method

Future<int?> getInt(
  1. String key
)

Reads a integer 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<int?> getInt(String key) async {
  return await _channel.invokeMethod('getInt', {'key': key});
}