Whether an item has an error.
bool hasError(int index) { final error = getError(index); return error != null && error.isNotEmpty; }