endsWith method

FieldValidator<String?, String> endsWith(
  1. String other, [
  2. MessageCallBack<String>? message
])

check if the value ends with other

Implementation

FieldValidator<String?, String> endsWith(String other,
    [MessageCallBack<String>? message]) {
  return endsWithFn(() => other, message);
}