errorMessage property

String get errorMessage

Implementation

String get errorMessage {
  final isError = this is ErrorStatus;
  if (isError) {
    final err = this as ErrorStatus;
    if (err.error != null) {
      if (err.error is String) {
        return err.error as String;
      }
      return err.error.toString();
    }
  }

  return '';
}