copyWith method
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,
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,
);
}