change<G> method

G change<G>(
  1. G operation()
)

Implementation

G change<G>(G Function() operation) {
  G result = operation();
  notifyListeners();
  return result;
}