JustAudioPlatform class Null safety

The interface that implementations of just_audio must implement.

Platform implementations should extend this class rather than implement it as just_audio does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added JustAudioPlatform methods.

Inheritance
Implementers

Constructors

JustAudioPlatform()
Constructs a JustAudioPlatform.

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

disposeAllPlayers(DisposeAllPlayersRequest request) Future<DisposeAllPlayersResponse>
Disposes of all platform players.
disposePlayer(DisposePlayerRequest request) Future<DisposePlayerResponse>
Disposes of a platform player.
init(InitRequest request) Future<AudioPlayerPlatform>
Creates a new platform player and returns a nested platform interface for communicating with that player.
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.
inherited

Static Properties

instance JustAudioPlatform
The default instance of JustAudioPlatform to use.
read / write