sendInvokeMethod method

Future<Object?> sendInvokeMethod(
  1. T instance,
  2. String methodName,
  3. List<Object?> arguments
)

Attempt to invoke a method on PairedInstance paired with instance.

If instance isn't paired, the method will be invoked on a NewUnpairedInstance.

Sends a message to another TypeChannelMessenger with TypeChannelMessenger.messenger.

Implementation

Future<Object?> sendInvokeMethod(
  T instance,
  String methodName,
  List<Object?> arguments,
) {
  return messenger.sendInvokeMethod(name, instance, methodName, arguments);
}