Open
Description
For testing purposes it would be useful if there was a way to drive the dart:core clock manually, so that DateTime.now
returned predictable times. One solution would be to provide a hook in the Zone
to drive it; this would let FakeAsync
drive it in a manner consistent with the rest of the FakeAsync
clocks.
Currently there is code in Flutter's framework that is untested and basically untestable because it depends on the value returned from DateTime.now (for example, the code that highlights "today" in the date picker).