setTime method

void setTime(
  1. DateTime time
)

Replaces the current time with time.

Implementation

void setTime(DateTime time) => _now = time;