Index: pkg/scheduled_test/lib/src/mock_clock.dart |
diff --git a/pkg/scheduled_test/lib/src/mock_clock.dart b/pkg/scheduled_test/lib/src/mock_clock.dart |
index efcc7eb2481a2dbca6d260857f6743b07ccefe6b..bda216f35d8d092369d7235edf65d9d023dccca5 100644 |
--- a/pkg/scheduled_test/lib/src/mock_clock.dart |
+++ b/pkg/scheduled_test/lib/src/mock_clock.dart |
@@ -30,7 +30,7 @@ Clock mock() { |
return _clock; |
} |
-typedef void TimerCallback(Timer timer); |
+typedef void TimerCallback(); |
/// Returns a new (possibly mocked) [Timer]. Works the same as [new Timer]. |
Timer newTimer(Duration duration, TimerCallback callback) => |
@@ -94,7 +94,7 @@ class _MockTimer implements Timer { |
_subscription = _clock.onTick.listen((time) { |
if (_cancelled || time < _time) return; |
_subscription.cancel(); |
- _callback(this); |
+ _callback(); |
}); |
} |