isValueEquals method

bool isValueEquals(
  1. T oldValue,
  2. T newValue
)
inherited

is value equals

Implementation

bool isValueEquals(T oldValue, T newValue) {
  if (oldValue is List && newValue is List) {
    return listEquals(oldValue, newValue);
  }

  if (oldValue is Set && newValue is Set) {
    return setEquals(oldValue, newValue);
  }

  if (oldValue is Map && newValue is Map) {
    return mapEquals(oldValue, newValue);
  }

  return oldValue == newValue;
}