PlaylistId constructor

PlaylistId(
  1. 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);
}