createAsync static method
Implementation
static Future<HandshakeTime> createAsync(InputFactoryHandshakeTime input) async {
final clock = NTPClock();
await clock.refresh();
final now = clock.now();
return HandshakeTime((
handshakeTimeframe: input.handshakeTimeframe ?? defaultHandshakeTimeInput.handshakeTimeframe!,
handshakeDuration: input.handshakeDuration ?? defaultHandshakeTimeInput.handshakeDuration!,
startHandshakeTime: now,
endHandshakeTime: now.add(Duration(seconds: input.whenLastHandshake ?? defaultHandshakeTimeInput.whenLastHandshake!)),
));
}