HTML class
This class is the only class you should be using from the simple_html_css package. It contains all the methods you need to handle your HTML and CSS.
Constructors
- HTML()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
toRichText(
BuildContext context, String htmlContent, {dynamic linksCallback(dynamic)?, Map< String, TextStyle> ? overrideStyle, TextStyle? defaultTextStyle, bool unescapeContent = true}) → RichText - Returns a RichText widget you can directly add to your widget tree. In addition to the build context and your HTML content, you can pass a function to this method. You can use the function to handle click events on anchor tags. The function will receive the actual link as its argument.
-
toTextSpan(
BuildContext context, String htmlContent, {dynamic linksCallback(dynamic)?, Map< String, TextStyle> ? overrideStyle, TextStyle? defaultTextStyle, bool unescapeContent = true}) → TextSpan - Returns a TextSpan object you can directly pass to a RichText widget. In addition to the build context and your HTML content, you can pass a function to this method. You can use the function to handle click events on anchor tags. The function will receive the actual link as its argument.