PathRouterListener<T> constructor

const PathRouterListener<T>({
  1. required String path,
  2. PushEventCallback? onPush,
  3. PopEventCallback<T>? onPop,
  4. Widget? child,
  5. Key? key,
})

Creates a PathRouterListener.

Implementation

const PathRouterListener({
  required String path,
  PushEventCallback? onPush,
  PopEventCallback<T>? onPop,
  Widget? child,
  Key? key,
})  : _path = path,
      super(onPush: onPush, onPop: onPop, child: child, key: key);