PlaylistId class Null safety

Encapsulates a valid YouTube playlist ID.

Annotations

Constructors

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

Properties

copyWith → $PlaylistIdCopyWith<PlaylistId>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value String
The playlist id as string.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

parsePlaylistId(String url) String?
Parses a playlist url returning its id. If the url is a valid it is returned itself.
validatePlaylistId(String playlistId) bool
Returns true if the given playlistId is valid.