router property

RouterInterface? get router

Returns the RouterInterface used for networking, or null if not available.

Implementation

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