endsWith method

Validator endsWith(
  1. String suffix, {
  2. String? message,
})

Ensures the value ends with a specific suffix.

Implementation

Validator endsWith(String suffix, {String? message}) {
  _rules.add(EndsWithRule(suffix, message ?? _messages.endsWith));
  return this;
}