Skip to content

Commit 4522523

Browse files
committed
Fix const Clock() for Dart 1
1 parent c5d2a04 commit 4522523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/clock.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Clock {
3434

3535
/// Creates a clock based on the given [currentTime], or on the system clock
3636
/// by default.
37-
const Clock([DateTime currentTime()]) : _time = currentTime ?? systemTime;
37+
const Clock([DateTime currentTime() = systemTime]) : _time = currentTime;
3838

3939
/// Creates [Clock] that always considers the current time to be [time].
4040
Clock.fixed(DateTime time) : _time = (() => time);

0 commit comments

Comments
 (0)