getFullPathToGithubRepo method
- String repo
Implementation
ExternalLinkConfig getFullPathToGithubRepo(String repo) {
final config = socialMediaLinksConfig;
if (config == null) {
throw StateError('socialMediaLinksConfig is not set');
}
final github = config['GitHub'];
if (github == null) {
throw StateError(
'GitHub link is not configured in socialMediaLinksConfig',
);
}
return ExternalLinkConfig(host: github.host, path: github.path + repo);
}