inWidgetsFlutterBinding property

bool get inWidgetsFlutterBinding

Indicating app is running in the Flutter engine and not in the flutter_test framework with TestWidgetsFlutterBinding for example

Implementation

bool get inWidgetsFlutterBinding => _inWidgetsFlutterBinding ??=
    WidgetsBinding.instance is WidgetsFlutterBinding;