executeLib method

dynamic executeLib(
  1. String library,
  2. String name, [
  3. List? args
])

Execute a function in the current runtime, from a passed library URI and function name, with optional args.

Implementation

dynamic executeLib(String library, String name, [List? args]) {
  _setup();
  if (args != null) {
    this.args = args;
  }
  if (declarations[_bridgeLibraryMappings[library]] == null) {
    throw ArgumentError('Cannot find $library, maybe it wasn\'t declared as'
        ' an entrypoint?');
  }
  return execute(declarations[_bridgeLibraryMappings[library]!]![name]!);
}