overrideBasePath method

void overrideBasePath(
  1. String basePath
)

Override config file directory

basePath New base path

Implementation

void overrideBasePath(String basePath) {
  Pointer<Utf8> data = basePath.toNativeUtf8();
  Pointer<Pointer<Void>> exception = WebFrameworkException.createException();

  OverrideBasePathDart function = handler.instance
      .lookupFunction<OverrideBasePathC, OverrideBasePathDart>(
          "overrideBasePath");

  function.call(implementation, data, exception);

  malloc.free(data);

  WebFrameworkException.checkException(exception, handler);
}