sanitizeStyle method

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

Implementation

@override
String? sanitizeStyle(value) {
  if (value == null) return null;
  if (value is SafeStyle) {
    return value.changingThisWillBypassSecurityTrust;
  }
  if (value is SafeValue) {
    throw UnsupportedError('Unexpected SecurityContext $value, '
        'expecting style');
  }
  if (value == null) return null;
  return internalSanitizeStyle(value is String ? value : value.toString());
}