getConfigurationString method
Get string from config
key
Config key
recursive
Search recursively
Implementation
String getConfigurationString(String key, {bool recursive = true}) {
Pointer<Utf8> data = key.toNativeUtf8();
Pointer<Pointer<Void>> exception = WebFrameworkException.createException();
GetConfigurationStringDart function = handler.instance
.lookupFunction<GetConfigurationStringC, GetConfigurationStringDart>(
"getConfigurationString");
Pointer<Void> temp =
function.call(implementation, data, recursive, exception);
malloc.free(data);
WebFrameworkException.checkException(exception, handler);
String result = handler.getDataFromString(temp);
handler.deleteWebFrameworkString(temp);
return result;
}