ChannelHandle constructor

ChannelHandle(
  1. String urlOrChannelHandle
)

Initializes an instance of ChannelHandle.

Implementation

factory ChannelHandle(String urlOrChannelHandle) {
  final channelHandle = parseChannelHandle(urlOrChannelHandle);
  if (channelHandle == null) {
    throw ArgumentError.value(
      urlOrChannelHandle,
      'urlOrChannelHandle',
      'Invalid ChannelHandle',
    );
  }
  return ChannelHandle._(channelHandle);
}