isStructuralChange method
胶囊映射、数量或奖品变化需要延后到结算后应用。
Implementation
@override
bool isStructuralChange(CapsuleConfig oldConfig, CapsuleConfig newConfig) =>
oldConfig.prizes.length != newConfig.prizes.length ||
!listEquals(oldConfig.capsules, newConfig.capsules) ||
oldConfig.capsulesPerPrize != newConfig.capsulesPerPrize;