getMarkdownBody function

MarkdownBody getMarkdownBody(
  1. String description,
  2. Color? textColor,
  3. double? textScaleFactor
)

Implementation

MarkdownBody getMarkdownBody(
    String description, Color? textColor, double? textScaleFactor) {
  return MarkdownBody(
    styleSheet: getMarkdownStyleSheetForAllElements(textColor, textScaleFactor),
    onTapLink: (text, url, b) {
      if (url == null) {
        return;
      }
    },
    data: description,
  );
}