send method

Future<T?> send(
  1. T message
)

Sends the specified message to the platform plugins on this channel.

Returns a Future which completes to the received response, which may be null.

Implementation

Future<T?> send(T message) async {
  return codec.decodeMessage(await binaryMessenger.send(name, codec.encodeMessage(message)));
}