getRawUrl method

String getRawUrl(
  1. String repository,
  2. String filePath
)

Implementation

String getRawUrl(String repository, String filePath) {
  var rawHost = repository.replaceAll('github', 'raw.githubusercontent');
  return '$rawHost/refs/heads/main/$filePath';
}