LazyYouTubeResult class

A search result from YouTube.

Inheritance

Constructors

LazyYouTubeResult.new({required Stream<String> artists(), required Future<String> title(), required Future<String> album(), required Future<int> sDuration(), required Future<String> srcUrl(), required Future<String> dlUrl(), required Future<String> artUrl(), required Future<Source> source()})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

album() Future<String>
Album of the song.
override
artists() Stream<String>
Artist(s) of the song.
override
artUrl() Future<String>
URL to the album art.
override
dlUrl() Future<String>
URL to a downloadable stream from the given source.
override
hasAlbum() Future<bool>
Whether the song has an album.
inherited
hasArtists() Future<bool>
Whether the song has any artists.
inherited
hasArtUrl() Future<bool>
Whether the song has an album art.
inherited
hasDlUrl() Future<bool>
Whether the song has a download URL.
inherited
hasDuration() Future<bool>
Whether the song has a duration.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sDuration() Future<int>
Duration of the song in seconds.
override
source() Future<Source>
Source of the song.
override
srcUrl() Future<String>
URL of the song from the given source.
override
title() Future<String>
Title of the song.
override
toResult() Future<Result>
Convert LazyResult into Result.
override
toString() String
A string representation of this object.
inherited

Operators

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