hasError property

bool get hasError

Check if has error

Implementation

bool get hasError => error != null;