registerEndOfSimulationAction static method
- dynamic action(
Registers an arbitrary action
to be executed at the end of the
simulation.
The simulation will not be marked as ended until these actions complete.
If action
returns a Future, it will be await
ed.
Implementation
static void registerEndOfSimulationAction(dynamic Function() action) {
_endOfSimulationActions.add(action);
}