call method

bool call(
  1. String fieldValue,
  2. String targetValue
)

Implementation

bool call(String fieldValue, String targetValue) {
  var valueTypeA = detectValueType(fieldValue);
  var valueTypeB = detectValueType(targetValue);
  var valueType = cascadeValueType(valueTypeA, valueTypeB);

  var comparor = comparorOverride ?? defaultComparors[valueType]!;
  dynamic parsedValue = comparor.parse(fieldValue);
  dynamic parsedTargetValue = comparor.parse(targetValue);

  return isValid(parsedValue, parsedTargetValue, comparor);
}