hasError property

bool get hasError

Checks if the field has an error.

Implementation

bool get hasError => error != null;