update<T> method

T update<T>(
  1. T updater()
)

Implementation

T update<T>(T Function() updater) {
  T result = updater();
  notifyListeners();
  return result;
}