bool hasConnection(bool warning) { if (!_hasConnaction && warning) OverAlert.show(type: AlertType.danger, message: 'noconnection'.translate); return _hasConnaction; }