hasError property

bool hasError

checks whether an error is present

Implementation

bool get hasError => error != null;