abnormalTerminationStartedForTest property

  1. @visibleForTesting
bool get abnormalTerminationStartedForTest

テスト専用に、_abnormalTerminationStarted フラグの現在値を返す。

disconnect() の finally で併せてリセットされることを検証するために使う。 リセットの根拠と受容トレードオフは _abnormalTerminationStarted 側の フィールド docstring を参照。

Implementation

@visibleForTesting
bool get abnormalTerminationStartedForTest => _abnormalTerminationStarted;