sendInvokeMethod method

  1. @override
Future<Object?> sendInvokeMethod(
  1. String channelName,
  2. PairedInstance pairedInstance,
  3. String methodName,
  4. List<Object?> arguments,
)
override

Invoke a method on the object instance that pairedInstance represents.

Implementation

@override
Future<Object?> sendInvokeMethod(
  String channelName,
  PairedInstance pairedInstance,
  String methodName,
  List<Object?> arguments,
) {
  return channel.invokeMethod<Object>(
    MethodChannelMessenger._methodMethod,
    <Object>[channelName, pairedInstance, methodName, arguments],
  );
}