getDuration method

Future<Duration> getDuration()

Implementation

Future<Duration> getDuration() async {
  int durationInMilliseconds =
      await (_channel!.invokeMethod(Methods.getDuration));
  return Duration(milliseconds: durationInMilliseconds);
}