checkValue method

  1. @override
bool checkValue(
  1. String targetValue
)
override

Implementation

@override
bool checkValue(String targetValue) {
  switch (comparator) {
    case TextComparator.equal:
      return targetValue == value;
    case TextComparator.notEqual:
      return targetValue != value;
    case TextComparator.contains:
      return targetValue.contains(value);
    case TextComparator.doesNotContain:
      return !targetValue.contains(value);
  }
}