router property

RouterInterface? get router

Access to the network router.

Implementation

RouterInterface? get router {
  if (_container.isRegistered(NetworkHandler)) {
    return _container.get<NetworkHandler>().router;
  }
  return null;
}