parseSpoiler static method

String parseSpoiler({
  1. required String text,
  2. required GeneralLibParseModeType generalLibParseModeType,
})

Implementation

static String parseSpoiler({
  required String text,
  required GeneralLibParseModeType generalLibParseModeType,
}) {
  switch (generalLibParseModeType) {
    case GeneralLibParseModeType.html:
      return parseHtmlSpoiler(text);
    // case GeneralLibParseModeType.markdown:
    //   return parseMark(text, links);
    default:
      return text;
  }
}