showErrorToast method
Implementation
void showErrorToast(ErrorEntity? errorEntity, bool show) {
if (show && null != errorEntity) {
String error = errorEntity.message.isNotEmpty ? errorEntity.message : Strings.httpRequestError.tr;
ToastUtils.showToast(error);
}
}