getBoolean method

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

Implementation

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