getBoolean static method

Future<bool?> getBoolean({
  1. required String key,
  2. required bool defaultValue,
})

Implementation

static Future<bool?> getBoolean({required String key,
  required bool defaultValue}) async {
  Map<String, Object> config = {
    "key": key,
    "defaultValue": defaultValue
  };
  final bool? status =
      (await _channel.invokeMethod<bool>('getBoolean', config));
  return status;
}