getFunctionsInstance function

Functions getFunctionsInstance(
  1. App app, [
  2. String? region
])

Given an AppJSImp, return the Functions instance.

Implementation

Functions getFunctionsInstance(App app, [String? region]) {
  functions_interop.FunctionsJsImpl jsObject = functions_interop.getFunctions(
    app.jsObject,
    region?.toJS,
  );
  return Functions.getInstance(jsObject);
}