firstDifference method

String? firstDifference(
  1. ActiveModelParams other
)

Name of the first parameter that differs from other, or null when the cached model can be reused. Both sides are normalized first.

Returns the NAME rather than a bool so the caller can say which knob forced the reload. "Model recreation: paramsChanged=true" tells nobody what to change.

Implementation

String? firstDifference(ActiveModelParams other) {
  final a = normalized();
  final b = other.normalized();
  return a._rawDifference(b);
}