hasError property

bool get hasError

Returns true if error is present.

Implementation

bool get hasError => error != null;