getConfigurationInteger method

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

Get integer from config

key Config key

recursive Search recursively

Implementation

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

  GetConfigurationIntegerDart function = handler.instance
      .lookupFunction<GetConfigurationIntegerC, GetConfigurationIntegerDart>(
          "getConfigurationInteger");

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

  malloc.free(data);

  WebFrameworkException.checkException(exception, handler);

  return result;
}