PlaylistId constructor
PlaylistId(
- String idOrUrl
Initializes an instance of PlaylistId
Implementation
factory PlaylistId(String idOrUrl) {
final id = parsePlaylistId(idOrUrl);
if (id == null) {
throw ArgumentError.value(idOrUrl, 'idOrUrl', 'Invalid url');
}
return PlaylistId._internal(id);
}