trimmedNotEmpty<E> static method

Rule<String, E> trimmedNotEmpty<E>({
  1. required E error,
})

Validates that the trimmed string is not empty.

StringRules.trimmedNotEmpty(error: 'Field cannot be blank')

Implementation

static Rule<String, E> trimmedNotEmpty<E>({required E error}) =>
    PredicateRule(
      predicate: (value) => value.trim().isNotEmpty,
      error: error,
    );