hasError property

bool get hasError

Returns true when error is present.

Implementation

bool get hasError => error != null;