getVolume method
Implementation
@override
Future<double> getVolume() async {
try {
final volume = await methodChannel.invokeMethod<double>('getVolume');
return (volume ?? 1.0).clamp(0.0, 1.0);
} on PlatformException catch (exception) {
throw _mapPlatformException(exception);
}
}