toJson method
Serializes the widget and its properties into a JSON-mappable object.
This is a crucial part of the process that sends the widget tree structure and content to the web-based rendering engine.
Implementation
@override
Map toJson() => {
'meta': meta().toJson(),
'data': child.toJson(),
'style': style?.initStyle() ?? teXViewDefaultStyle,
'rippleEffect': rippleEffect ?? true,
};