AudioStreamControl class
Controls for played sound
Utility class that wraps the stream id with a easy-to-use API
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- playing → bool
-
Returns true if stream is not paused
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopped → bool
-
Returns true if stream has been stopped and cannot be resumed
no setter
- stream → int
-
Id of the stream that is controlled by this object
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - Pauses playing the stream associated with this object
-
resume(
) → Future< void> - Resumes paused stream associated with this object
-
setRate(
{required double playbackRate}) → Future - Sets playback rate. A value of 1.0 means normal speed, 0.5 - half speed, 2.0 - double speed.
-
setVolume(
{double? volume, double? volumeLeft, double? volumeRight}) → Future -
Sets volume for playing sound identified by
soundId
orstreamId
-
stop(
) → Future< void> - Stops playing the stream associated with this object
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited