update method

void update(
  1. VoidCallback callback
)

Implementation

void update(VoidCallback callback) {
  callback();
  notifyListeners();
}