isError property

bool get isError

will true when errors is not empty

Implementation

bool get isError => errors.isNotEmpty;