getString static method

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

Implementation

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