parse method
Implementation
TextSpan parse(Map<String, dynamic> map, ClickListener? listener) {
String? clickEvent = map.containsKey("recognizer") ? map['recognizer'] : "";
var textSpan = TextSpan(
text: map['text'],
style: parseTextStyle(map['style']),
recognizer: TapGestureRecognizer()
..onTap = () {
listener!.onClicked(clickEvent);
},
children: []);
if (map.containsKey('children')) {
parseChildren(textSpan, map['children'], listener);
}
return textSpan;
}