sendMessageToMiddlewares abstract method

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

Call registered middlewares.

Example:

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

Implementation

void sendMessageToMiddlewares(
    {required NotificationMessageLevel level,
    String? message,
    Object? throwable});