sameLayout method

bool sameLayout(
  1. CalcThemeData other
)

Whether other differs from this theme only in what painters read live during a transition (colours, opacities, corner fraction, press scale, focus-ring width, backdrop, the key face's shape): widgets built from CalcTheme.layoutOf need no rebuild.

Implementation

bool sameLayout(CalcThemeData other) =>
    identical(this, other) ||
    (other.brightness == brightness &&
        other.displayFontFamily == displayFontFamily &&
        other.displayWeight == displayWeight &&
        other.keyFontFamily == keyFontFamily &&
        other.digitKey.labelWeight == digitKey.labelWeight &&
        other.operatorKey.labelWeight == operatorKey.labelWeight &&
        other.equalsKey.labelWeight == equalsKey.labelWeight &&
        other.functionKey.labelWeight == functionKey.labelWeight &&
        (other.digitKey.outline == null) == (digitKey.outline == null) &&
        _sameSpring(other.pressIn, pressIn) &&
        _sameSpring(other.release, release) &&
        _sameOptionalSpring(other.releaseAlt, releaseAlt) &&
        other.keyFace.layoutFace == keyFace.layoutFace &&
        other.displayEntry == displayEntry &&
        other.releaseHaptic == releaseHaptic &&
        other.displayFace.runtimeType == displayFace.runtimeType);