hasError property

bool get hasError

Error is present.

Implementation

bool get hasError => error != null;