toggleSound method
Changes the state of the volume between muted and not muted. Returns true if the change was successful or false if an error happened.
Implementation
Future<bool> toggleSound() async {
try {
await _channel.invokeMethod("player#toggleSound");
_videoViewState.notifyControlChanged(_MediaControl.toggleSound);
return true;
} catch (ex) {
debugPrint("$ex");
}
return false;
}