update method

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

Notifies listeners to rebuild.

  • Pass ids to only update GetBuilder widgets with a matching id.
  • Use condition to conditionally skip an update.

Implementation

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