getDuration method
platform call to get duration max/current
Implementation
Future<int?> getDuration(String key, int durationType) async {
var duration = await _methodChannel.invokeMethod(Constants.getDuration, {
Constants.durationType: durationType,
Constants.playerKey: key,
});
return duration;
}