copyWith method

StaticHeadConfig copyWith({
  1. String? baseUrl,
  2. List<StaticRoute>? routes,
  3. WebMetadata? defaults,
  4. String? siteName,
  5. String? titleTemplate,
  6. String? defaultImage,
  7. String? defaultRobots,
  8. String? themeColor,
  9. String? language,
  10. bool? trailingSlash,
  11. List<StaticRoutePattern>? patterns,
  12. bool? sitemap,
  13. bool? robotsTxt,
  14. String? manifest,
  15. 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,
  );
}