after method

  1. @override
void after()

This is an optional method that may be overridden to run during action dispatching, after reduce. If this method throws an error, the error will be swallowed (will not throw). So you should only run code that can't throw errors. It may be synchronous only. Note this method will always be called, even if errors were thrown by before or reduce.

Implementation

@override
void after() {
  // remove the loading indicator
  dispatch(WaitAction<CoreState>.remove(isWaitingSendOTP));
}