duration property

Future<Duration> get duration

Implementation

Future<Duration> get duration async {
  double durationInMilliSeconds = await engineInstanceMethodChannel.invokeMethod("getDuration") ?? 0.0;
  return Duration(milliseconds: durationInMilliSeconds.ceil());
}