build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Registers the middlewares in the queue.

Implementation

@override
Widget build(BuildContext context) {
  _controller.addListener(() {
    _listenerMessageManager(context, _controller);
  });
  if (middlewares != null) {
    _controller.middlewares.addAll(middlewares!);
  }
  return child;
}