errorMessage property
String
get
errorMessage
Gets the error message associated with the status.
Implementation
String get errorMessage {
final isError = this is ErrorStatus;
if (isError) {
final err = this as ErrorStatus;
if (err.error != null && err.error is String) {
return err.error as String;
}
}
return '';
}