Custom channels and codecs

Besides the above mentioned MethodChannel,
you can also use the more basic
BasicMessageChannel, which supports basic,
asynchronous message passing using a custom message codec.
You can also use the specialized BinaryCodec,
StringCodec, and JSONMessageCodec
classes, or create your own codec.

You might also check out an example of a custom codec
in the cloud_firestore plugin,
which is able to serialize and deserialize many more
types than the default types.

Channels and platform threading