addDirt method

bool addDirt(
  1. int value,
  2. {bool recurse = false}
)
inherited

Implementation

bool addDirt(int value, {bool recurse = false}) {
  if ((dirt & value) == value) {
    return false;
  }
  dirt |= value;
  onDirty(dirt);
  artboard?.onComponentDirty(this);
  if (!recurse) {
    return true;
  }
  for (final d in dependents) {
    d.addDirt(value, recurse: recurse);
  }
  return true;
}