HtmlDecoration class final

Safe token decoration for static HTML output. Text and attributes are escaped.

Constructors

HtmlDecoration({String className = '', String? title, String before = '', String after = ''})
Adds a CSS class, tooltip, and plain text around one token.
const

Properties

after → String
Escaped text after the source token.
final
before → String
Escaped text before the source token.
final
className → String
Additional CSS class names.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
Optional browser tooltip.
final

Methods

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

Operators

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