postTest method
override
Called by the testWidgets function after a test is executed.
Subclasses that override this method must call super.postTest() and must
not throw exceptions. This method will not throw errors; any invariant
failures detected during verification are reported via
reportTestException.
Implementation
@override
void postTest() {
super.postTest();
assert(!_expectingFrame);
assert(_pendingFrame == null);
_inTest = false;
}