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 ui that depend on this controller. You can also specify specific widget IDs to update only those ui.

Parameters:

  • ids: Optional list of widget IDs to update. If null, updates all ui.
  • 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);
    }
  }
}