hasError property

bool get hasError

Returns true if error is not null, otherwise false.

Implementation

bool get hasError => error != null;