LexicalCard class
The primary widget for parsing and rendering complex JSON structures.
The LexicalParser can either take a direct Map<String, dynamic>
structure through sourceMap
or a raw JSON string through sourceString
. It processes this input to generate a visual representation.
Other stylistic and structural properties can also be customized.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LexicalCard
Constructors
-
LexicalCard({Key? key, Map<
String, dynamic> ? sourceMap, String? sourceString, TextStyle? paragraphStyle, bool? lazyLoad, EdgeInsets? tablePadding, EdgeInsets? paragraphPadding, EdgeInsets? numberedPadding, EdgeInsets? tableCellPadding, MathEquationOptions mathEquationOptions = const MathEquationOptions(), TextStyle? h1Style, TextStyle? h2Style, bool shrinkWrap = false, ScrollController? scrollController, ScrollPhysics? scrollPhysics, ImageOptions imageOptions = const ImageOptions(), EdgeInsetsGeometry? mathEquationPadding, EdgeInsetsGeometry? listPadding, required LexicalCardStyle cardStyle, VoidCallback? onClose, VoidCallback? onOpen}) -
const
Properties
- cardStyle → LexicalCardStyle
-
final
- h1Style → TextStyle?
-
final
- h2Style → TextStyle?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageOptions → ImageOptions
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lazyLoad → bool?
-
final
- listPadding → EdgeInsetsGeometry?
-
final
- mathEquationOptions → MathEquationOptions
-
final
- mathEquationPadding → EdgeInsetsGeometry?
-
final
- numberedPadding → EdgeInsets?
-
final
- onClose → VoidCallback?
-
final
- onOpen → VoidCallback?
-
final
- paragraphPadding → EdgeInsets?
-
final
- paragraphStyle → TextStyle?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
final
- scrollPhysics → ScrollPhysics?
-
final
- shrinkWrap → bool
-
final
-
sourceMap
→ Map<
String, dynamic> ? -
Direct input of the JSON structure.
final
- sourceString → String?
-
Raw JSON string, which will be parsed internally.
final
- tableCellPadding → EdgeInsets?
-
final
- tablePadding → EdgeInsets?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< LexicalCard> -
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