settle function

Future<void> settle()

Lets the microtask a tracker schedules run.

Use this in plain test() bodies. Under testWidgets the faked clock deadlocks against a real Future.delayed — drive the tracker with tester.pump(duration) there, or use fakeAsync for a debounced tracker.

Implementation

Future<void> settle() => Future<void>.delayed(Duration.zero);