copyWith method
StaticHeadConfig
copyWith({
- String? baseUrl,
- List<
StaticRoute> ? routes, - WebMetadata? defaults,
- String? siteName,
- String? titleTemplate,
- String? defaultImage,
- String? defaultRobots,
- String? themeColor,
- String? language,
- bool? trailingSlash,
- List<
StaticRoutePattern> ? patterns, - bool? sitemap,
- bool? robotsTxt,
- String? manifest,
- RenderingStrategy? renderingStrategy,
Implementation
StaticHeadConfig copyWith({
String? baseUrl,
List<StaticRoute>? routes,
WebMetadata? defaults,
String? siteName,
String? titleTemplate,
String? defaultImage,
String? defaultRobots,
String? themeColor,
String? language,
bool? trailingSlash,
List<StaticRoutePattern>? patterns,
bool? sitemap,
bool? robotsTxt,
String? manifest,
RenderingStrategy? renderingStrategy,
}) {
return StaticHeadConfig(
baseUrl: baseUrl ?? this.baseUrl,
routes: routes ?? this.routes,
defaults: defaults ?? this.defaults,
siteName: siteName ?? this.siteName,
titleTemplate: titleTemplate ?? this.titleTemplate,
defaultImage: defaultImage ?? this.defaultImage,
defaultRobots: defaultRobots ?? this.defaultRobots,
themeColor: themeColor ?? this.themeColor,
language: language ?? this.language,
trailingSlash: trailingSlash ?? this.trailingSlash,
patterns: patterns ?? this.patterns,
sitemap: sitemap ?? this.sitemap,
robotsTxt: robotsTxt ?? this.robotsTxt,
manifest: manifest ?? this.manifest,
renderingStrategy: renderingStrategy ?? this.renderingStrategy,
);
}