Yt class Null safety

Mixed in types
Available Extensions

Constructors

Yt({LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off), LoggyPrinter printer = const PrettyPrinter(showColors: false)})

Properties

broadcast Broadcast
read-only
channels Channels
read-only
chat Chat
read-only
hashCode int
The hash code for this object.
read-only, inherited
liveStream LiveStream
read-only
loggy Loggy<UiLoggy>
read-only, inherited
playlistItems PlaylistItems
read-only
playlists Playlists
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
read-only
subscriptions Subscriptions
read-only
thumbnails Thumbnails
read-only
videoCategories VideoCategories
read-only
videos Videos
read-only
watermarks Watermarks
read-only

Methods

close() → void
Close the http connection to the API server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setModules({bool? useToken, String? apiKey}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dio Dio
final
httpClient HttpClient
final
tokenExpiry DateTime
final
tokenGenerator TokenGenerator?
read / write

Static Methods

withGenerator(TokenGenerator generator, {LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off)}) Future<Yt>
withKey(String apiKey) Yt
withOAuth({ClientId? oAuthClientId, LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off)}) Future<Yt>