This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
final regExpPattern = r'\[([^\]]+)\]\(([^\s\)]+)\)'; | |
final regExp = RegExp(regExpPattern); | |
const String BOLD = 'B'; | |
const String ITALIC = 'I'; | |
const String COLORED = 'C'; | |
const String BOLD_AND_COLORED = 'BC'; | |
const String ITALIC_AND_COLORED = 'IC'; |