invokeMethod<T> static method

Future<T?> invokeMethod<T>({
  1. required ChannelMethod method,
  2. dynamic arguments,
})

Implementation

static Future<T?> invokeMethod<T>({
  required ChannelMethod method,
  dynamic arguments,
}) {
  return _channel
      .invokeMethod<T>(method.name, arguments)
      .timeout(_channelTimeout);
}