widgetTesterContextKey constant
String
const widgetTesterContextKey
Set to true only when running under a flutter WidgetTester test.
The WidgetTester is thrown off by 'infinite' animations like CircularProgressIndicator: it thinks the screen is never done rendering. Consequently, you should use widgets like AFCircularProgressIndicator, which use this flag, by way of the utility AFConfig.isWidgetTesterContext to return static widgets instead of an infinite animation in the widget tester context.
Implementation
static const widgetTesterContextKey = "widgetTesterContext";