isWidgetTreeReady method Null safety

  1. @protected
bool isWidgetTreeReady(
  1. [String? groupName]
)
protected">@protected

Returns whether the application has rendered its first frame and it is appropriate to display the Widget tree in the inspector.

Implementation

@protected
bool isWidgetTreeReady([ String? groupName ]) {
  return WidgetsBinding.instance != null &&
         WidgetsBinding.instance.debugDidSendFirstFrameEvent;
}