logInvocations function Null safety

void logInvocations(
  1. List<Mock> mocks
)

Print all collected invocations of any mock methods of mocks.

Implementation

void logInvocations(List<Mock> mocks) {
  mocks.expand((m) => m._realCalls).toList(growable: false)
    ..sort((inv1, inv2) => inv1.timeStamp.compareTo(inv2.timeStamp))
    ..forEach((inv) {
      print(inv.toString());
    });
}