send method

Future<T> send (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 BinaryMessages.send(name, codec.encodeMessage(message)));
}