ChannelHandle.fromString constructor

ChannelHandle.fromString(
  1. 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());
}