SafeHtmlProto class

IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script.

A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.

Constructors

SafeHtmlProto({String? privateDoNotAccessOrElseSafeHtmlWrappedValue})
SafeHtmlProto.fromJson(Map _json)

Properties

hashCode int
The hash code for this object.
no setterinherited
privateDoNotAccessOrElseSafeHtmlWrappedValue String?
IMPORTANT: Never set or read this field, even from tests, it is private.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited