secureUrl property

String? secureUrl

The secure file URL.

Implementation

String? get secureUrl {
  final eKey = chat.chatContext.eKey;
  if (requireAuth && eKey != null) {
    // https://github.com/flutter/flutter/issues/25107
    // final urlString = url.replaceAll('https://', 'http://');
    return '$url?auth=$eKey';
  }
  return url;
}