onSetState method

void onSetState(
  1. bool show, {
  2. Widget? child,
})

Implementation

void onSetState(bool show, {Widget? child}) {
  if (this.show != show) {
    this.show = show;
    if (child != null) {
      this.child = child;
    }
    if (!mounted) {
      return;
    }
    setState(() {});
  }
}