hasError method

bool hasError(
  1. int index
)

Whether an item has an error.

Implementation

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