Use the builder function in these circumstances:

  • The first time the widget is assembled.
  • If the parent widget meets various layout constraints.
  • This widget is also updated when the widget parent is updated.
  • The builder function will change when the dependencies it subscribes to change.