ChannelId class

Encapsulates a valid YouTube channel ID.

Annotations
  • @freezed

Constructors

ChannelId(String value)
Initializes an instance of ChannelId
factory
ChannelId.fromString(dynamic obj)
Converts obj to a ChannelId by calling .toString on that object. If it is already a ChannelId, obj is returned
factory

Properties

copyWith → $ChannelIdCopyWith<ChannelId>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
ID as a string.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseChannelId(String url) String?
Parses a channel id from an url. Returns null if the username is not found.
validateChannelId(String id) bool
Returns true if the given id is a valid channel id.