sanitizeUrl method

  1. @override
String? sanitizeUrl(
  1. dynamic value
)

Implementation

@override
String? sanitizeUrl(value) {
  if (value == null) return null;
  if (value is SafeUrl) return value.changingThisWillBypassSecurityTrust;
  if (value is SafeValue) {
    throw UnsupportedError('Unexpected SecurityContext $value, '
        'expecting url');
  }
  return internalSanitizeUrl(value.toString());
}