Skip to content

Commit 3d489d9

Browse files
committed
use now from clock
1 parent ba0b8e7 commit 3d489d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flutter/lib/src/event_processor/screenshot_event_processor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ScreenshotEventProcessor implements EventProcessor {
4141

4242
// ignore: invalid_use_of_internal_member
4343
final now = _options.clock();
44-
final difference = _lastApplyCall?.difference(DateTime.now()).abs();
44+
final difference = _lastApplyCall?.difference(now).abs();
4545
_lastApplyCall = now;
4646

4747
if (difference != null && difference < debounceDuration) {

0 commit comments

Comments
 (0)