firstErrorIndex property
int?
get
firstErrorIndex
Index of the first item with an error (null if none).
Implementation
int? get firstErrorIndex {
for (var i = 0; i < _errors.length; i++) {
if (_errors[i] != null && _errors[i]!.isNotEmpty) return i;
}
return null;
}