update method

void update([
  1. List<Object>? ids,
  2. bool condition = true
])

Notifies listeners to update the UI.

When called without parameters, it will update all widgets that depend on this controller. You can also specify specific widget IDs to update only those widgets.

Parameters:

  • ids: Optional list of widget IDs to update. If null, updates all widgets.
  • condition: If false, the update will be skipped.

Implementation

void update([List<Object>? ids, bool condition = true]) {
  if (!condition) {
    return;
  }
  if (ids == null) {
    refresh();
  } else {
    for (final id in ids) {
      refreshGroup(id);
    }
  }
}