listEmpty<T> function

IValidator listEmpty<T>()

Validate that the list is empty

Implementation

IValidator listEmpty<T>() => listLength<T>([isLte(0)]) >
    Expectation(message: 'List to be empty', code: 'value.length_out_of_range', data: {'expected': 0});