ChannelHandle.fromString constructor
ChannelHandle.fromString(
- dynamic obj
Converts obj
to a ChannelHandle by calling .toString on that object.
If it is already a ChannelHandle, obj
is returned
Implementation
factory ChannelHandle.fromString(dynamic obj) {
if (obj is ChannelHandle) {
return obj;
}
return ChannelHandle(obj.toString());
}