getConfigurationBoolean method

bool getConfigurationBoolean(
  1. String key, {
  2. bool recursive = true,
})

Get boolean from config

key Config key

recursive Search recursively

Implementation

bool getConfigurationBoolean(String key, {bool recursive = true}) {
  Pointer<Utf8> data = key.toNativeUtf8();
  Pointer<Pointer<Void>> exception = WebFrameworkException.createException();

  GetConfigurationBooleanDart function = handler.instance
      .lookupFunction<GetConfigurationBooleanC, GetConfigurationBooleanDart>(
          "getConfigurationBoolean");

  bool result = function.call(implementation, data, recursive, exception);

  malloc.free(data);

  WebFrameworkException.checkException(exception, handler);

  return result;
}