changeTextColor method
Change text color
Implementation
void changeTextColor({Color currentColor = const Color(0xffffffff)}) {
late int _index;
if (currentColor == const Color(0xFF753a88)) {
_index = -1;
} else {
_index = textColors.indexOf(currentColor);
}
final sticker =
TextSticker(style: TextStyle(color: textColors[_index + 1]));
value = value.copyWith(
textColor: textColors[_index + 1],
);
stickerController.addSticker(sticker);
}