debugDoingBuild property Null safety
Whether the widget is currently updating the widget or render tree.
For StatefulWidgets and StatelessWidgets this flag is true while their respective build methods are executing. RenderObjectWidgets set this to true while creating or configuring their associated RenderObjects. Other Widget types may set this to true for conceptually similar phases of their lifecycle.
Accessing this flag in release mode is not valid.
@override bool get debugDoingBuild => _debugDoingBuild;