build method

  1. @override
Widget build(
  1. BuildContext context,
  2. String text,
  3. GptMarkdownConfig config
)
override

Implementation

@override
Widget build(
  BuildContext context,
  String text,
  final GptMarkdownConfig config,
) {
  var match = exp.firstMatch(text);
  return UnorderedListView(
    bulletColor:
        config.style?.color ?? DefaultTextStyle.of(context).style.color,
    padding: 10.0,
    bulletSize: 0.2 *
        (config.style?.fontSize ??
            DefaultTextStyle.of(context).style.fontSize ??
            kDefaultFontSize),
    textDirection: config.textDirection,
    child: MdWidget(
      "${match?[1]}",
      config: config,
    ),
  );
}