endsWith<E> static method
Validates that the string ends with suffix.
StringRules.endsWith('.com', error: 'Must end with .com')
Implementation
static Rule<String, E> endsWith<E>(String suffix, {required E error}) =>
PredicateRule(predicate: (value) => value.endsWith(suffix), error: error);