基于 index 和 text 计算哈希值。
Computes the hash code based on index and text.
@override int get hashCode => Object.hash(index, text);