reflectChanges method

void reflectChanges()

Function called after a state change made by the parent to reproduce the current state of the element.

In future versions, the functionality here may be replaced by a State object on Element.

Implementation

void reflectChanges() {
  if (_reference != null) _initialRef?.replaceWith(_reference!);
}