callMiddlewares method

void callMiddlewares({
  1. required NotificationMessageLevel level,
  2. String? message,
  3. Object? throwable,
})

Calls all MessageHandlerMiddleware registred in the queue.

Implementation

void callMiddlewares({
  required NotificationMessageLevel level,
  String? message,
  Object? throwable,
}) {
  for (var middleware in middlewares) {
    middleware.didShowMessage(
      level: level,
      message: message,
      throwable: throwable,
    );
  }
}