clockForTesting property
Replaces the session clock (epoch milliseconds) in tests, so a test can simulate a day. Null, the default, keeps the system clock.
Implementation
@visibleForTesting
int Function()? clockForTesting;
Replaces the session clock (epoch milliseconds) in tests, so a test can simulate a day. Null, the default, keeps the system clock.
@visibleForTesting
int Function()? clockForTesting;