Type

BuildContext

Element

StatefulElement

Relevant PRs:

Deprecated in #44189

Removed in:
    
      #69620
      #72903
      #72901
      #73751

WidgetsBinding.deferFirstFrameReport & WidgetsBinding.allowFirstFrameReport

Supported by fix tool: Yes

The deferFirstFrameReport and allowFirstFrameReport methods of WidgetsBinding were deprecated
and removed in order to provide the option to delay rendering the first frame. This is useful for
widgets that need to obtain initialization information asynchronously and while they are waiting for
that information no frame should render as that would take down the splash screen pre-maturely.
The deferFirstFrame and allowFirstFrame methods should be used respectively instead.

Migration guide

Code before migration:

final