TestWidgetsFlutterBinding.clock change

Summary

Context

Migration guide

Option #1: Create a package:quiver Clock from a package:clock Clock
Option #2: Change the api to accept a package:clock Clock
Option #3: Change the API to accept a DateTime function()

Timeline

References

Summary

The TestWidgetsFlutterBinding.clock now comes from
package:clock and not package:quiver.

Context

The flutter_test package is removing its dependency on
the heavier weight quiver package in favor of a dependency
on two more targeted and lighter weight packages,
clock and fake_async.

This can affect user code which grabs the clock from a
TestWidgetsFlutterBinding and passes that to an API
that expects a Clock from package:quiver,
for example some code like this:

testWidgets