ChannelId class
Encapsulates a valid YouTube channel ID.
- Annotations
-
- @freezed
Constructors
Properties
-
copyWith
→ $ChannelIdCopyWith<
ChannelId> -
Create a copy of ChannelId
with the given fields replaced by the non-null parameter values.
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.