update method

void update()

Function used to update the widget with setState

Implementation

void update() => setState(() {});