sendMessageToMiddlewares method
void
sendMessageToMiddlewares({
- required NotificationMessageLevel level,
- String? message,
- 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,
);
}