Your Widget should have a setState() method, everytime this method is called, the widget is redrawn.
Documentation :
Widget setState()
Your Widget should have a setState() method, everytime this method is called, the widget is redrawn.
Documentation :
Widget setState()