hasError property

bool hasError

Implementation

bool get hasError {
  final error = this.error;

  return error != null && error.isNotEmpty;
}