// GENERATED CODE - DO NOT MODIFY BY HAND part of 'settings.dart'; // ************************************************************************** // CopyWithGenerator // ************************************************************************** abstract class _$SettingsCWProxy { Settings kagiSession(String? kagiSession); Settings showEarlyAccessFeatures(bool showEarlyAccessFeatures); Settings incognitoMode(bool incognitoMode); Settings enableJavascript(bool enableJavascript); Settings launchUrlExternal(bool launchUrlExternal); Settings enableContentBlocking(bool enableContentBlocking); Settings blockHttpProtocol(bool blockHttpProtocol); Settings enableHostList(Set enableHostList); Settings themeMode(ThemeMode themeMode); /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Settings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage /// ```dart /// Settings(...).copyWith(id: 12, name: "My name") /// ```` Settings call({ String? kagiSession, bool? showEarlyAccessFeatures, bool? incognitoMode, bool? enableJavascript, bool? launchUrlExternal, bool? enableContentBlocking, bool? blockHttpProtocol, Set? enableHostList, ThemeMode? themeMode, }); } /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfSettings.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfSettings.copyWith.fieldName(...)` class _$SettingsCWProxyImpl implements _$SettingsCWProxy { const _$SettingsCWProxyImpl(this._value); final Settings _value; @override Settings kagiSession(String? kagiSession) => this(kagiSession: kagiSession); @override Settings showEarlyAccessFeatures(bool showEarlyAccessFeatures) => this(showEarlyAccessFeatures: showEarlyAccessFeatures); @override Settings incognitoMode(bool incognitoMode) => this(incognitoMode: incognitoMode); @override Settings enableJavascript(bool enableJavascript) => this(enableJavascript: enableJavascript); @override Settings launchUrlExternal(bool launchUrlExternal) => this(launchUrlExternal: launchUrlExternal); @override Settings enableContentBlocking(bool enableContentBlocking) => this(enableContentBlocking: enableContentBlocking); @override Settings blockHttpProtocol(bool blockHttpProtocol) => this(blockHttpProtocol: blockHttpProtocol); @override Settings enableHostList(Set enableHostList) => this(enableHostList: enableHostList); @override Settings themeMode(ThemeMode themeMode) => this(themeMode: themeMode); @override /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Settings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage /// ```dart /// Settings(...).copyWith(id: 12, name: "My name") /// ```` Settings call({ Object? kagiSession = const $CopyWithPlaceholder(), Object? showEarlyAccessFeatures = const $CopyWithPlaceholder(), Object? incognitoMode = const $CopyWithPlaceholder(), Object? enableJavascript = const $CopyWithPlaceholder(), Object? launchUrlExternal = const $CopyWithPlaceholder(), Object? enableContentBlocking = const $CopyWithPlaceholder(), Object? blockHttpProtocol = const $CopyWithPlaceholder(), Object? enableHostList = const $CopyWithPlaceholder(), Object? themeMode = const $CopyWithPlaceholder(), }) { return Settings( kagiSession: kagiSession == const $CopyWithPlaceholder() ? _value.kagiSession // ignore: cast_nullable_to_non_nullable : kagiSession as String?, showEarlyAccessFeatures: showEarlyAccessFeatures == const $CopyWithPlaceholder() || showEarlyAccessFeatures == null ? _value.showEarlyAccessFeatures // ignore: cast_nullable_to_non_nullable : showEarlyAccessFeatures as bool, incognitoMode: incognitoMode == const $CopyWithPlaceholder() || incognitoMode == null ? _value.incognitoMode // ignore: cast_nullable_to_non_nullable : incognitoMode as bool, enableJavascript: enableJavascript == const $CopyWithPlaceholder() || enableJavascript == null ? _value.enableJavascript // ignore: cast_nullable_to_non_nullable : enableJavascript as bool, launchUrlExternal: launchUrlExternal == const $CopyWithPlaceholder() || launchUrlExternal == null ? _value.launchUrlExternal // ignore: cast_nullable_to_non_nullable : launchUrlExternal as bool, enableContentBlocking: enableContentBlocking == const $CopyWithPlaceholder() || enableContentBlocking == null ? _value.enableContentBlocking // ignore: cast_nullable_to_non_nullable : enableContentBlocking as bool, blockHttpProtocol: blockHttpProtocol == const $CopyWithPlaceholder() || blockHttpProtocol == null ? _value.blockHttpProtocol // ignore: cast_nullable_to_non_nullable : blockHttpProtocol as bool, enableHostList: enableHostList == const $CopyWithPlaceholder() || enableHostList == null ? _value.enableHostList // ignore: cast_nullable_to_non_nullable : enableHostList as Set, themeMode: themeMode == const $CopyWithPlaceholder() || themeMode == null ? _value.themeMode // ignore: cast_nullable_to_non_nullable : themeMode as ThemeMode, ); } } extension $SettingsCopyWith on Settings { /// Returns a callable class that can be used as follows: `instanceOfSettings.copyWith(...)` or like so:`instanceOfSettings.copyWith.fieldName(...)`. // ignore: library_private_types_in_public_api _$SettingsCWProxy get copyWith => _$SettingsCWProxyImpl(this); }