updateState method

void updateState()

Implementation

void updateState() {
  setState(() {
    state = widget.router.state.value;
  });
}