isRootWidgetAttached property Null safety

bool isRootWidgetAttached

Whether the renderViewElement has been initialized.

This will be false until runApp is called (or WidgetTester.pumpWidget is called in the context of a TestWidgetsFlutterBinding).

Implementation

bool get isRootWidgetAttached => _renderViewElement != null;