Returns a hash code based on the character, colors, and styles.
@override int get hashCode => Object.hash(char, fg, bg, Object.hashAllUnordered(styles));