af method

String af(
  1. String txt,
  2. ChalkFtFace ftFace
)

Implementation

String af(String txt, ChalkFtFace ftFace) {
  switch (ftFace) {
    case ChalkFtFace.bold:
      return style(Mod.bold, str: txt);
    case ChalkFtFace.italic:
      return style(Mod.italic, str: txt);
    case ChalkFtFace.underLine:
      return style(Mod.underline, str: txt);
    case ChalkFtFace.strikeThrough:
      return style(Mod.strikeThrough, str: txt);
    case ChalkFtFace.overline:
      return style(Mod.overline, str: txt);
  }
}