'Dart send custom data from one Isolate to another

I created Isolate same as the comment of this question create Isolate

My Question: Is it safe to send/receive any type of data (custom class) using

channel.sink.add(data)

or should I use only some primary types?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source