consistent function

List<RichTextItem> consistent(
  1. List<RichTextStyle> children, {
  2. Color? color,
})

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;
}