getCurrentNtpTimeMs property

Future<int?> getCurrentNtpTimeMs

If the NTP server cannot be reached or Kronos has not yet been synced, getCurrentTimeMs() will return time from the fallback clock and trigger syncInBackground(). If you'd rather control the fallback, you can use getCurrentNtpTimeMs(), which returns null instead of falling back. To get metadata with an individual timestamp, use KronosClock.getCurrentTime(), which returns an instance of KronosTime. KronosTime contains the currentTime and the timeSinceLastNtpSyncMs, which will be null if currentTime is coming from the device clock.

Implementation

static Future<int?> get getCurrentNtpTimeMs async {
  return await _channel.invokeMethod("GET_CURRENT_NTP_TIME_MS");
}