onBuild property Null safety

VoidCallback? onBuild

Called when it is safe to update the render box and its descendants. If you update the RenderObject subtree under this widget outside of invocations of this callback, features like hit-testing will fail as the tree will be dirty.


final VoidCallback? onBuild;