tasmeeFingerprint function

int tasmeeFingerprint()

بصمة حالة التسميع المؤثرة على بناء السطر (تُدمج في _computeFingerprint).

Implementation

int tasmeeFingerprint() {
  if (!GetInstance().isRegistered<TasmeeCtrl>()) return 0;
  final t = TasmeeCtrl.instance;
  return Object.hash(
    t.state.isTasmeeMode.value.hashCode,
    t.state.currentRangePage.hashCode,
    t.state.showAllWords.value.hashCode,
    t.state.transparentFontsReady.value.hashCode,
    t.state.currentWordKey.value.hashCode,
    Object.hashAll(t.state.wordStatuses.entries
        .map((e) => Object.hash(e.key, e.value.index))),
    Object.hashAll(t.state.wordErrorKinds.entries
        .map((e) => Object.hash(e.key, e.value.index))),
  );
}