void markAsDirty({bool onlySelf })

Source

void markAsDirty({bool onlySelf}) {
  onlySelf = onlySelf == true;
  this._pristine = false;
  if (_parent != null && !onlySelf) {
    this._parent.markAsDirty(onlySelf: onlySelf);
  }
}