getString method

Future<String> getString(
  1. String key,
  2. String fallbackValue
)

Implementation

Future<String> getString(String key, String fallbackValue) async {
  try {
    final args = [key, fallbackValue];
    return await _channel.invokeMethod('getString', args);
  } on Exception catch (e) {
    Logger.i("$e Error while getting config's");
    return fallbackValue;
  }
}