fromConfig static method
Create WebFramework
config
Config instance
Implementation
static Future<WebFramework> fromConfig(Config config) async {
DllHandler handler = await DllHandler.create();
Pointer<Pointer<Void>> exception = WebFrameworkException.createException();
CreateWebFrameworkFromConfig function = handler.instance.lookupFunction<
CreateWebFrameworkFromConfig,
CreateWebFrameworkFromConfig>("createWebFrameworkFromConfig");
Pointer<Void> implementation =
function.call(config.implementation, exception);
WebFrameworkException.checkException(exception, handler);
return WebFramework._constructor(implementation, handler);
}