VolumeController class

Provides access to the system volume.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showSystemUI bool
Whether to show the system UI when changing the volume.
getter/setter pair

Methods

addListener(dynamic onData(double)?, {bool fetchInitialVolume = true}) StreamSubscription<double>
Adds a listener for volume changes.
getVolume() Future<double>
Gets the current system volume.
isMuted() Future<bool>
Gets the current system volume mute status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener() → void
Cancels the volume listener.
setMute(bool mute) Future<void>
Sets the system volume mute status.
setVolume(double volume) Future<void>
Sets the system volume to the specified level.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VolumeController
Get the singleton instance of VolumeController
no setter