testWidgets

'some test'

WidgetTester

tester

someApiThatWantsAQuiverClock

tester

binding

clock

);

});

Migration guide

The error you might see after this change looks something like this:

Option #1: Create a package:quiver Clock from a package:clock Clock

The easiest migration is to create a package:quiver clock from the
package:clock clock, which can be done by passing the .now function
tearoff to the Clock constructor:

Code before migration:

testWidgets

'some test'

WidgetTester

tester

someApiThatWantsAQuiverClock

tester

binding

clock