update method

void update({
  1. String? title,
  2. Widget? child,
})

Implementation

void update({String? title, Widget? child}) {
  Widget? w = child ?? title?.text();
  if (w != null) {
    this.child = w;
  }
  updateState();
}