hasError property

bool get hasError

Indicates if error is not null.

Implementation

bool get hasError => error != null;