NtpClient constructor

const NtpClient({
  1. String server = 'pool.ntp.org',
  2. int port = 123,
  3. int timeout = 5,
})

Creates a new NtpClient instance with optional configuration parameters.

Although server and port are accepted for API compatibility with other platforms, they are ignored in this web implementation. timeout is used as the HTTP request timeout.

Implementation

const NtpClient({super.server, super.port, super.timeout});