getDuration method
Returns the total duration of the video.
Implementation
Future<Duration> getDuration() async {
int durationMs =
await (_channel!.invokeMethod("getDuration") as FutureOr<int>);
return Duration(milliseconds: durationMs);
}