update method

void update()

更新UI

Implementation

void update() {
  if (mounted) {
    setState(() {});
  }
}