update method

void update()

Updates the widget state.

Implementation

void update() {
  context.visitAncestorElements((element) {
    element.markNeedsBuild();
    return false;
  });
}