ChannelId constructor

ChannelId(
  1. String value
)

Initializes an instance of ChannelId

Implementation

factory ChannelId(String value) {
  final id = parseChannelId(value);
  if (id == null) {
    throw ArgumentError.value(value, 'value', 'Invalid channel id');
  }
  return ChannelId._internal(id);
}