Migration details
Flutter 3.32.0 changed the signature of Navigator.removeRouteBelow which caused a compile time error flutter/flutter#157725.
// Before:
when(() => navigator.removeRouteBelow(any())).thenAnswer((_) {});
// After:
when(
() => navigator.removeRouteBelow<Object?>(any(), any()),
).thenAnswer((_) {});