length method
Implementation
JarArray<T> length(int exactLength, [String? message]) {
return addValidator((value) {
if (value == null) return null;
return value.length == exactLength
? null
: (message ?? 'Must have exactly $exactLength elements');
});
}