ChannelHandle class

Encapsulates a valid YouTube channel handle, including the starting @ (at).

Annotations
  • @freezed

Constructors

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

Properties

copyWith → $ChannelHandleCopyWith<ChannelHandle>
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
Handle as 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.
inherited

Operators

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

Static Methods

parseChannelHandle(String handleOrUrl) String?
Parses a ChannelHandle from a url.
validateChannelHandle(String name) bool
Returns true if the given ChannelHandle is a valid ChannelHandle.