invoke method

Future<InstanceRef?> invoke(
  1. InstanceRef instanceRef,
  2. String name,
  3. List<String> argRefs, {
  4. required Disposable? isAlive,
  5. bool shouldLogError = true,
})

Implementation

Future<InstanceRef?> invoke(
  InstanceRef instanceRef,
  String name,
  List<String> argRefs, {
  required Disposable? isAlive,
  bool shouldLogError = true,
}) {
  return addRequest(
    isAlive,
    () => _invoke(
      instanceRef,
      name,
      argRefs,
      shouldLogError: shouldLogError,
    ).then((value) => value!),
  );
}