SoundRequest class

One sound playback requested by sound.play.

Constructors

SoundRequest({required AssetRef source, required AssetBytesReader readBytes, double volume = 1.0, String? id, bool loop = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String?
Names this playback so sound.stop can end it.
final
loop → bool
final
readBytes → AssetBytesReader
Bytes for the forms a platform player cannot take by URI. A bundled sound is the normal case, not an exotic one: an author who ships a picture with their app ships the beep the same way, and an image that works beside a sound that does not is the drift this closes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → AssetRef
Already-resolved reference — the runtime resolves bindings and scheme before the host is asked to play anything.
final
volume → double
final

Methods

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

Operators

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