AudioSource class Null safety

Specifies a source of audio to be played. Audio sources are composable using the subclasses of this class. The same AudioSource instance should not be used simultaneously by more than one AudioPlayer.

Implementers

Constructors

AudioSource()

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sequence List<IndexedAudioSource>
read-only
shuffleIndices List<int>
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Methods

uri(Uri uri, {Map<String, String>? headers, dynamic tag}) UriAudioSource
Creates an AudioSource from a Uri with optional headers by attempting to guess the type of stream. On iOS, this uses Apple's SDK to automatically detect the stream type. On Android, the type of stream will be guessed from the extension. [...]