RawMarkUp class

A widget that helps pushing raw contents to the DOM.

This widget doesn't clean or sanitize inputs. This behaviour is intentional to allow an application add Javascript into the DOM.

Example:

Span(
  child: RawMarkup('<table> {...} </table>'),
)
Inheritance

Constructors

RawMarkUp(String html, {Key? key})
const

Properties

correspondingTag DomTagType
Corresponding HTML tag to use to render this widget
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
html String
final
key Key?
Keys help Rad identify which widgets have changed, are added, or are removed when a widget has multiple sibling widgets.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widgetCaptureEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in capturing phase.
no setterinherited
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in bubbling phase.
no setterinherited

Methods

createRenderElement(RenderElement parent) RenderElement
Create element for current widget.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldUpdateWidget(covariant RawMarkUp oldWidget) bool
Whether to update current widget.
override
shouldUpdateWidgetChildren(Widget oldWidget, bool shouldUpdateWidget) bool
Whether to update current widget's children.
override
toString() String
A string representation of this object.
inherited

Operators

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