process method

  1. @override
String process(
  1. String oldValue,
  2. String newValue
)
override

Implementation

@override
String process(String oldValue, String newValue) {
  String result = newValue;

  if (trimWhitespace) {
    result = result.trim();
  }

  if (toLowerCase) {
    result = result.toLowerCase();
  }

  if (toUpperCase) {
    result = result.toUpperCase();
  }

  if (maxLength != null && result.length > maxLength!) {
    result = result.substring(0, maxLength);
  }

  return result;
}