send method
Sends the data
to the isolate, the isolate may or may not receive the data depending on if the
isolate has terminated or close has been called.
Implementation
@override
void send(T data) {
if (_codec == null) {
_sPort.send(data);
} else {
_sPort.send(_codec.encode(data));
}
}