hasError method

bool hasError(
  1. int code
)

Implementation

bool hasError(int code) => errors.getWhere((element) => element.id == code) != null;