Router domain([String? domain]) { if (domain != null && _routes.isNotEmpty) { _routes.last.domain = domain; } return this; }