copyWith method

WebifyConfig copyWith({
  1. String? baseUrl,
  2. String? defaultTitle,
  3. String? titleTemplate,
  4. String? defaultDescription,
  5. String? defaultOgImage,
  6. String? twitterSite,
  7. String? locale,
  8. OrganizationSchema? defaultOrganization,
  9. List<AnalyticsProvider>? analyticsProviders,
  10. bool? enableNoscriptFallback,
  11. bool? debugMode,
  12. String? defaultRobots,
})

Creates a copy with overridden values

Implementation

WebifyConfig copyWith({
  String? baseUrl,
  String? defaultTitle,
  String? titleTemplate,
  String? defaultDescription,
  String? defaultOgImage,
  String? twitterSite,
  String? locale,
  OrganizationSchema? defaultOrganization,
  List<AnalyticsProvider>? analyticsProviders,
  bool? enableNoscriptFallback,
  bool? debugMode,
  String? defaultRobots,
}) {
  return WebifyConfig(
    baseUrl: baseUrl ?? this.baseUrl,
    defaultTitle: defaultTitle ?? this.defaultTitle,
    titleTemplate: titleTemplate ?? this.titleTemplate,
    defaultDescription: defaultDescription ?? this.defaultDescription,
    defaultOgImage: defaultOgImage ?? this.defaultOgImage,
    twitterSite: twitterSite ?? this.twitterSite,
    locale: locale ?? this.locale,
    defaultOrganization: defaultOrganization ?? this.defaultOrganization,
    analyticsProviders: analyticsProviders ?? this.analyticsProviders,
    enableNoscriptFallback:
        enableNoscriptFallback ?? this.enableNoscriptFallback,
    debugMode: debugMode ?? this.debugMode,
    defaultRobots: defaultRobots ?? this.defaultRobots,
  );
}