hasService<T extends _BaseService> method
bool
hasService<
T extends _BaseService>()
Implementation
bool hasService<T extends _BaseService>() {
if (T == DataAccess) {
return _dataAccess != null;
} else if (T == WebSocketService) {
return _socketService != null;
} else if (T == HttpService) {
return _httpService != null;
} else if (T == Crypto) {
return _crypto != null;
} else if (T == Logger) {
return _logger != null;
} else if (T == Authorization) {
return _authorization != null;
} else {
return false;
}
}