isInTest top-level property

bool isInTest

Returns true if the code is currently being execute by unit tests

Implementation

bool get isInTest => !kReleaseMode && runInTest;