IdRouterListener<T> constructor

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

Creates a IdRouterListener.

Implementation

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