invoke method

Future<Object?> invoke(
  1. String name, [
  2. List<Object?> arguments = const []
])

Calls the exported function name; the result follows the JavaScript convention (null, the single value, or a list for several results).

Implementation

Future<Object?> invoke(String name, [List<Object?> arguments = const []]) async =>
    (await _request('invoke', {'name': name, 'args': arguments}))['value'];