hasError property

bool get hasError

Whether there is an error

Implementation

bool get hasError => error != null;