GptMarkdown class
This widget create a full markdown widget as a column view.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- GptMarkdown
Constructors
- GptMarkdown.new(String data, {Key? key, TextStyle? style, bool followLinkColor = false, TextDirection textDirection = TextDirection.ltr, String latexWorkaround(String tex)?, TextAlign? textAlign, Widget imageBuilder(BuildContext, String imageUrl)?, TextScaler? textScaler, void onLinkTab(String url, String title)?, Widget latexBuilder(BuildContext context, String tex, TextStyle style, bool inline)?, Widget codeBuilder(BuildContext context, String name, String code, bool closed)?, Widget sourceTagBuilder(BuildContext, String, TextStyle)?, Widget highlightBuilder(BuildContext context, String text, TextStyle style)?, Widget linkBuilder(BuildContext context, String text, String url, TextStyle style)?, int? maxLines, TextOverflow? overflow})
-
const
Properties
- codeBuilder → Widget Function(BuildContext context, String name, String code, bool closed)?
-
The code builder.
final
- data → String
-
The data to be displayed.
final
- followLinkColor → bool
-
Whether to follow the link color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightBuilder → Widget Function(BuildContext context, String text, TextStyle style)?
-
The highlight builder.
final
- imageBuilder → Widget Function(BuildContext, String imageUrl)?
-
The image builder.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- latexBuilder → Widget Function(BuildContext context, String tex, TextStyle style, bool inline)?
-
The LaTeX builder.
final
- latexWorkaround → String Function(String tex)?
-
The LaTeX workaround.
final
- linkBuilder → Widget Function(BuildContext context, String text, String url, TextStyle style)?
-
The link builder.
final
- maxLines → int?
-
final
- onLinkTab → void Function(String url, String title)?
-
The callback function to handle link clicks.
final
- overflow → TextOverflow?
-
The overflow.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceTagBuilder → Widget Function(BuildContext, String, TextStyle)?
-
The source tag builder.
final
- style → TextStyle?
-
The style of the text.
final
- textAlign → TextAlign?
-
The alignment of the text.
final
- textDirection → TextDirection
-
The direction of the text.
final
- textScaler → TextScaler?
-
The text scaler.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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