getCurrentTime method

Future<Duration> getCurrentTime()

Implementation

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