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