AdjustedHtmlView class
A HTML viewer that can adjust html's display size.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdjustedHtmlView
Constructors
-
AdjustedHtmlView.new({Key? key, required String htmlText, bool useDefaultStyle = true, HtmlValidator? htmlValidator, List<
String> customClasses = const []}) -
const
Properties
-
customClasses
→ List<
String> -
Classes to add to the Outer DivElement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlText → String
-
The HTML content to display.
This will be passed into the DivElement.innerHtml setter.
So, it should be a valid HTML string.
This doesn't support perfect HTML that includes head, body, etc.
final
- htmlValidator → HtmlValidator?
-
Control which HTML tags are allowed.
If it is null, HtmlValidator.loose() will be used.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useDefaultStyle → bool
-
Whether you want to use the default style sheet.
If you want to use your own style sheet,
you can set this to false and provide your own style sheet.
In the case of using your own style sheet,
you need to prepare style sheets in
index.html
.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited