isValueEquals method

bool isValueEquals(
  1. String oldValue,
  2. String 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;
}