clearFormStates method

void clearFormStates()

Clears all visual form states (errors and yellow override warnings) from the grid. Call this after a successful form submission to visually reset the table.

Implementation

void clearFormStates() {
  bool changed = false;
  for (var state in _cellStates.values) {
    if (state.errorText != null || state.isOverridden) {
      state.errorText = null;
      state.isOverridden = false;
      state.overrideMessage = null;
      changed = true;
    }
  }
  if (changed) notifyListeners();
}