minSize<K, V, E> static method
Validates that the map has at least min entries.
MapRules.minSize(1, error: 'At least one entry required')
Implementation
static Rule<Map<K, V>, E> minSize<K, V, E>(int min, {required E error}) =>
PredicateRule(
predicate: (value) => value.length >= min,
error: error,
);