formatThemeWebLink function

String formatThemeWebLink(
  1. String code, {
  2. String? name,
})

Formats the web form of the link for code: https://calsee.tech/t/XXXXX-XXXXX (and name as ?name=).

Implementation

String formatThemeWebLink(String code, {String? name}) {
  final s = normalizeShareCode(code);
  if (s == null) throw FormatException('Invalid share code', code);
  return 'https://${deepLinkWebHosts.first}/$deepLinkThemeHost/'
      '${_grouped(s)}${_nameQuery(name)}';
}