VolumeController class
Provide the iOS/Androd system volume.
Constructors
- VolumeController()
-
Singleton factory
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
- showSystemUI ↔ bool
-
This value is used to determine whether showing system UI
getter/setter pair
Methods
-
getVolume(
) → Future< double> - This method get the current system volume.
-
listener(
dynamic onData(double)?) → StreamSubscription< double> - This method listen to the system volume. The volume value will be generated when the volume was changed.
-
maxVolume(
{bool? showSystemUI}) → void - This method set the system volume to max.
-
muteVolume(
{bool? showSystemUI}) → void - This method mute the system volume that mean the volume set to min.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
) → void - This method for canceling volume listener
-
setVolume(
double volume, {bool? showSystemUI}) → void - This method set the system volume between 0.0 to 1.0.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited