void preventThisFrameFromBeingReportedAsFirstFrame()

Tell the framework that the frame we are currently building should not be considered to be a useful first frame.

This is used by WidgetsApp to report the first frame.

Source

//
// TODO(ianh): This method should only be available in debug and profile modes.
void preventThisFrameFromBeingReportedAsFirstFrame() {
  _thisFrameWasUseful = false;
}