getDuration method

Future<int?> getDuration(
  1. String key,
  2. int durationType
)

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;
}