propertyChanged method

void propertyChanged({
  1. required String propertyName,
  2. Key? key,
})

Implementation

void propertyChanged({required String propertyName, Key? key}) {
  final instancesToNotify = _instancesToNotify[propertyName];
  if (instancesToNotify == null) {
    return;
  }
  for (var instanceToNotify in instancesToNotify) {
    if (instanceToNotify.source.key == key) {
      instanceToNotify.rebuild();
    }
  }
}