hasError property

bool hasError

Call this as a shorthand for error != null.

Implementation

bool get hasError => error != null;