getDuration method

Future<Duration> getDuration()

Get the total duration of the video

Implementation

Future<Duration> getDuration() async {
  final durationInMilliseconds = await _nativeApi.getDuration();
  return Duration(milliseconds: durationInMilliseconds);
}