transform method

EzValidator<T> transform(
  1. T transformFunction(
    1. T
    )
)

Transform the value before running the validation transformFunction is the function to run on the value

Implementation

EzValidator<T> transform(T Function(T) transformFunction) {
  transformationFunction = transformFunction;
  return this;
}