debugAssertNoTimeDilation method
- String reason
Asserts that there is no artificial time dilation in debug mode.
Throws a FlutterError if there are such dilation, as this will make subsequent tests see dilation and thus flaky.
Implementation
bool debugAssertNoTimeDilation(String reason) {
assert(() {
if (timeDilation != 1.0) {
throw FlutterError(reason);
}
return true;
}());
return true;
}