consistent function
Implementation
List<RichTextItem> consistent(List<RichTextStyle> children, {Color? color}) {
List<RichTextItem> list = [];
children.forEach((style) {
list.add(
RichTextItem(
style.text,
StyleText.normal(size: style.size, color: style.color ?? color),
onTap: style.onTap,
),
);
});
return list;
}