experimental gecko unmount setting
This commit is contained in:
@@ -153,6 +153,8 @@ abstract class _$GeneralSettingsCWProxy {
|
||||
|
||||
GeneralSettings desktopModeSites(List<String> desktopModeSites);
|
||||
|
||||
GeneralSettings unmountGeckoViewOffRoute(bool unmountGeckoViewOffRoute);
|
||||
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `GeneralSettings(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
@@ -224,6 +226,7 @@ abstract class _$GeneralSettingsCWProxy {
|
||||
bool pureBlack,
|
||||
bool globalDesktopMode,
|
||||
List<String> desktopModeSites,
|
||||
bool unmountGeckoViewOffRoute,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -503,6 +506,10 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
||||
GeneralSettings desktopModeSites(List<String> desktopModeSites) =>
|
||||
call(desktopModeSites: desktopModeSites);
|
||||
|
||||
@override
|
||||
GeneralSettings unmountGeckoViewOffRoute(bool unmountGeckoViewOffRoute) =>
|
||||
call(unmountGeckoViewOffRoute: unmountGeckoViewOffRoute);
|
||||
|
||||
@override
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `GeneralSettings(...).copyWith.fieldName(value)`.
|
||||
@@ -577,6 +584,7 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
||||
Object? pureBlack = const $CopyWithPlaceholder(),
|
||||
Object? globalDesktopMode = const $CopyWithPlaceholder(),
|
||||
Object? desktopModeSites = const $CopyWithPlaceholder(),
|
||||
Object? unmountGeckoViewOffRoute = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return GeneralSettings(
|
||||
themeMode: themeMode == const $CopyWithPlaceholder() || themeMode == null
|
||||
@@ -950,6 +958,12 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
||||
? _value.desktopModeSites
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: desktopModeSites as List<String>,
|
||||
unmountGeckoViewOffRoute:
|
||||
unmountGeckoViewOffRoute == const $CopyWithPlaceholder() ||
|
||||
unmountGeckoViewOffRoute == null
|
||||
? _value.unmountGeckoViewOffRoute
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: unmountGeckoViewOffRoute as bool,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1089,6 +1103,7 @@ GeneralSettings _$GeneralSettingsFromJson(
|
||||
desktopModeSites: (json['desktopModeSites'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList(),
|
||||
unmountGeckoViewOffRoute: json['unmountGeckoViewOffRoute'] as bool?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$GeneralSettingsToJson(
|
||||
@@ -1171,6 +1186,7 @@ Map<String, dynamic> _$GeneralSettingsToJson(
|
||||
'pureBlack': instance.pureBlack,
|
||||
'globalDesktopMode': instance.globalDesktopMode,
|
||||
'desktopModeSites': instance.desktopModeSites,
|
||||
'unmountGeckoViewOffRoute': instance.unmountGeckoViewOffRoute,
|
||||
};
|
||||
|
||||
const _$ThemeModeEnumMap = {
|
||||
|
||||
Reference in New Issue
Block a user