closeAll method
- bool animate = true,
Closes every live flight - the app-level "nothing stays open"
path (logout, deep link, tab switch, test teardown). animate
false tears them down instantly via MorphFlight.abort.
Implementation
void closeAll({bool animate = true}) {
for (final MorphFlight flight in _flights.values.toList()) {
if (animate) {
flight.close();
} else {
flight.abort();
}
}
}