onReceiveInvokeStaticMethod method

Object? onReceiveInvokeStaticMethod(
  1. String channelName,
  2. String methodName,
  3. List<Object?> arguments
)

Invoke a static method for a type channel.

Implementation

Object? onReceiveInvokeStaticMethod(
  String channelName,
  String methodName,
  List<Object?> arguments,
) {
  final Object? result = getChannelHandler(channelName)!.invokeStaticMethod(
    this,
    methodName,
    converter.convertPairedInstances(instanceManager, arguments)!
        as List<Object?>,
  );

  return converter.convertInstances(instanceManager, result);
}