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