hasError property

bool hasError

returns true is error is not null

Implementation

bool get hasError => !isValid;