tester

binding

clock

);

});

Code after migration:

testWidgets

'some test'

WidgetTester

tester

someApiThatWantsAQuiverClock

Clock

tester

binding

clock

now

));

});

Option #2: Change the api to accept a package:clock Clock

If you own the api you are calling,
you may want to change it to accept a Clock
from package:clock.
This is a judgement call based on how many places are
calling this API with something other than a clock
retrieved from a TestWidgetsFlutterBinding.