sendMessageToMiddlewares method

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

Call registered middlewares.

Example:

messageHandler.sendMessageToMiddlewares(
  level: NotificationMessageLevel.error,
  message: "testando middleware",
);

Implementation

@override
void sendMessageToMiddlewares(
    {required NotificationMessageLevel level,
    String? message,
    Object? throwable}) {
  _controller.callMiddlewares(
    level: level,
    message: message,
    throwable: throwable,
  );
}