We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d2a04 commit 4522523Copy full SHA for 4522523
lib/src/clock.dart
@@ -34,7 +34,7 @@ class Clock {
34
35
/// Creates a clock based on the given [currentTime], or on the system clock
36
/// by default.
37
- const Clock([DateTime currentTime()]) : _time = currentTime ?? systemTime;
+ const Clock([DateTime currentTime() = systemTime]) : _time = currentTime;
38
39
/// Creates [Clock] that always considers the current time to be [time].
40
Clock.fixed(DateTime time) : _time = (() => time);
0 commit comments