update method

void update()

The update method is called to check if the filter needs to be rebuilt. If the dirty property is true and the isValid property is also true, then the buildFilter method is called to rebuild the filter.

Implementation

void update() {
  if (dirty) {
    dirty = false;
    if (isValid) {
      buildFilter();
    }
  }
}