build method

  1. @override
Widget build(
  1. BuildContext context,
  2. String text,
  3. TextStyle? style,
  4. TextDirection textDirection,
  5. void onLinkTab(
    1. String url,
    2. String title
    )?,
)
override

Implementation

@override
Widget build(
  BuildContext context,
  String text,
  TextStyle? style,
  TextDirection textDirection,
  final void Function(String url, String title)? onLinkTab,
) {
  var match = exp.firstMatch(text.trim());
  return CustomCb(
    value: ("${match?[1]}" == "x"),
    textDirection: textDirection,
    child: MdWidget(
      "${match?[2]}",
      onLinkTab: onLinkTab,
      textDirection: textDirection,
      style: style,
    ),
  );
}