getBool static method

Future<bool?> getBool(
  1. String key
)

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