secureUrl property Null safety

String? secureUrl

Secure url address for media that this file message has

Implementation

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