createChannel method
Implementation
@override
ChannelAbstract<T> createChannel({required T name}) {
final String id = Uuid().v4();
idMapChannel[id] = IsolateChannel<T>(
sendPort: sendPort,
name: name,
channelId: id,
);
idMapChannel[id]?.onClose((name) {
if (idMapChannel.containsKey(id)) idMapChannel.remove(id);
});
return idMapChannel[id]!;
}