setState method

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

Rebuilds JuneBuilder each time you call update(); Can take a List of ids, that will only update the matching JuneBuilder( id: ), ids can be reused among JuneBuilders like group tags. The update will only notify the Widgets, if condition is true.

Implementation

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