hasError property

bool get hasError

Return true if error is not null

Implementation

bool get hasError => error != null;