SoundManager class

SoundManager is an utility component that provides an audio player

Constructors

SoundManager()
This method is used to get the instance of this class.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
play({required Sound sound, String? customSound, String? packageName, bool? isLooping = false}) → void
Plays sound, or customSound from packageName's assets.
stop() → void
Stops what the UI Kit is playing: a message sound, the incoming call's ringtone (and its vibration), and the outgoing call's ringback. Since 6.2.0 the ringtone and the ringback play on players of their own, but they still stop here, as they did before. An onCancelled that takes an outgoing call's End over can stop the ringback with it.
toString() → String
A string representation of this object.
inherited

Operators

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