ChannelId.fromString constructor

ChannelId.fromString(
  1. dynamic obj
)

Converts obj to a ChannelId by calling .toString on that object. If it is already a ChannelId, obj is returned

Implementation

factory ChannelId.fromString(dynamic obj) {
  if (obj is ChannelId) {
    return obj;
  }
  return ChannelId(obj.toString());
}