WaveformPlayerDelegate mixin

Abstract interface for WaveformPlayerController to communicate with WaveformPlayer's internal state in a type-safe manner.

This replaces the previous dynamic _state pattern, ensuring compile-time safety and proper API documentation.

Properties

duration → Duration
Total audio duration.
no setter
errorMessage → String?
Error message, if any.
no setter
hasError → bool
Whether an error has occurred.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isLoading → bool
Whether the player is currently loading.
no setter
isPlaying → bool
Whether audio is currently playing.
no setter
mounted → bool
Whether the underlying State object is still mounted in the widget tree.
no setter
position → Duration
Current playback position.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
Pauses playback.
play() → Future<void>
Starts playback.
seekTo(Duration position) → void
Seeks to the given position.
togglePlayPause() → Future<void>
Toggles between play and pause.
toString() → String
A string representation of this object.
inherited

Operators

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