setNowForTesting method

  1. @visibleForTesting
void setNowForTesting(
  1. DateTime now()?
)

Implementation

@visibleForTesting
void setNowForTesting(DateTime Function()? now) {
  _now = now ?? DateTime.now;
}