Router domain([String? domain]) { if (domain != null) { for (final route in _lastAdded) { route.domain = domain; } } return this; }