Flutter Web - How to check if the app is running in a test environment

Viewed 51
1 Answers

Why do you want to detect if you're in a test?

You could always just create a top-level static in a library you control

bool runningInATest = false; and then set it to true in your test app?

Related