process method
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;
}