createTestInfoSnapshot method Null safety

void createTestInfoSnapshot(
  1. St state,
  2. ReduxAction<St> action,
  3. Object? error,
  4. Object? processedError,
  5. {required bool ini}
)

Implementation

void createTestInfoSnapshot(
  St state,
  ReduxAction<St> action,
  Object? error,
  Object? processedError, {
  required bool ini,
}) {
  if (_testInfoController != null || testInfoPrinter != null) {
    var reduceInfo = TestInfo<St>(
      state,
      ini,
      action,
      error,
      processedError,
      dispatchCount,
      reduceCount,
      errors,
    );
    if (_testInfoController != null) _testInfoController!.add(reduceInfo);
    if (testInfoPrinter != null) testInfoPrinter!(reduceInfo);
  }
}