// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of '../state.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$SelectValue { T get value; /// Create a copy of SelectValue /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SelectValueCopyWith> get copyWith => _$SelectValueCopyWithImpl>(this as SelectValue, _$identity); @override bool operator ==(Object other) { final _this = this as SelectValue; return identical(this, other) || (other.runtimeType == runtimeType&&other is SelectValue&&const DeepCollectionEquality().equals(other.value, _this.value)); } @override int get hashCode { final _this = this as SelectValue; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.value)); } @override String toString() { final _this = this as SelectValue; return 'SelectValue<$T>(value: ${_this.value})'; } } /// @nodoc abstract mixin class $SelectValueCopyWith { factory $SelectValueCopyWith(SelectValue value, $Res Function(SelectValue) _then) = _$SelectValueCopyWithImpl; @useResult $Res call({ T value }); } /// @nodoc class _$SelectValueCopyWithImpl implements $SelectValueCopyWith { _$SelectValueCopyWithImpl(this._self, this._then); final SelectValue _self; final $Res Function(SelectValue) _then; /// Create a copy of SelectValue /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? value = freezed,}) { return _then(SelectValue( freezed == value ? _self.value : value // ignore: cast_nullable_to_non_nullable as T, )); } } /// Adds pattern-matching-related methods to [SelectValue]. extension SelectValuePatterns on SelectValue { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SelectValue value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SelectValue() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SelectValue value) $default,){ final _that = this; switch (_that) { case _SelectValue(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SelectValue value)? $default,){ final _that = this; switch (_that) { case _SelectValue() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( T value)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SelectValue() when $default != null: return $default(_that.value);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( T value) $default,) {final _that = this; switch (_that) { case _SelectValue(): return $default(_that.value);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( T value)? $default,) {final _that = this; switch (_that) { case _SelectValue() when $default != null: return $default(_that.value);case _: return null; } } } /// @nodoc class _SelectValue implements SelectValue { const _SelectValue(this.value); @override final T value; /// Create a copy of SelectValue /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SelectValueCopyWith> get copyWith => __$SelectValueCopyWithImpl>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SelectValue&&const DeepCollectionEquality().equals(other.value, value)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(value)); } @override String toString() { return 'SelectValue<$T>(value: $value)'; } } /// @nodoc abstract mixin class _$SelectValueCopyWith implements $SelectValueCopyWith { factory _$SelectValueCopyWith(_SelectValue value, $Res Function(_SelectValue) _then) = __$SelectValueCopyWithImpl; @override @useResult $Res call({ T value }); } /// @nodoc class __$SelectValueCopyWithImpl implements _$SelectValueCopyWith { __$SelectValueCopyWithImpl(this._self, this._then); final _SelectValue _self; final $Res Function(_SelectValue) _then; /// Create a copy of SelectValue /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? value = freezed,}) { return _then(_SelectValue( freezed == value ? _self.value : value // ignore: cast_nullable_to_non_nullable as T, )); } } /// @nodoc mixin _$CommonMessage { String get id; String get text; MessageLevel get level; Duration get duration; MessageActionState? get actionState; /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $CommonMessageCopyWith get copyWith => _$CommonMessageCopyWithImpl(this as CommonMessage, _$identity); @override bool operator ==(Object other) { final _this = this as CommonMessage; return identical(this, other) || (other.runtimeType == runtimeType&&other is CommonMessage&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.text, _this.text) || other.text == _this.text)&&(identical(other.level, _this.level) || other.level == _this.level)&&(identical(other.duration, _this.duration) || other.duration == _this.duration)&&(identical(other.actionState, _this.actionState) || other.actionState == _this.actionState)); } @override int get hashCode { final _this = this as CommonMessage; return Object.hash(runtimeType,_this.id,_this.text,_this.level,_this.duration,_this.actionState); } @override String toString() { final _this = this as CommonMessage; return 'CommonMessage(id: ${_this.id}, text: ${_this.text}, level: ${_this.level}, duration: ${_this.duration}, actionState: ${_this.actionState})'; } } /// @nodoc abstract mixin class $CommonMessageCopyWith<$Res> { factory $CommonMessageCopyWith(CommonMessage value, $Res Function(CommonMessage) _then) = _$CommonMessageCopyWithImpl; @useResult $Res call({ String id, String text, MessageLevel level, Duration duration, MessageActionState? actionState }); $MessageActionStateCopyWith<$Res>? get actionState; } /// @nodoc class _$CommonMessageCopyWithImpl<$Res> implements $CommonMessageCopyWith<$Res> { _$CommonMessageCopyWithImpl(this._self, this._then); final CommonMessage _self; final $Res Function(CommonMessage) _then; /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? text = null,Object? level = null,Object? duration = null,Object? actionState = freezed,}) { return _then(CommonMessage( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,text: null == text ? _self.text : text // ignore: cast_nullable_to_non_nullable as String,level: null == level ? _self.level : level // ignore: cast_nullable_to_non_nullable as MessageLevel,duration: null == duration ? _self.duration : duration // ignore: cast_nullable_to_non_nullable as Duration,actionState: freezed == actionState ? _self.actionState : actionState // ignore: cast_nullable_to_non_nullable as MessageActionState?, )); } /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MessageActionStateCopyWith<$Res>? get actionState { if (_self.actionState == null) { return null; } return $MessageActionStateCopyWith<$Res>(_self.actionState!, (value) { return _then(_self.copyWith(actionState: value)); }); } } /// Adds pattern-matching-related methods to [CommonMessage]. extension CommonMessagePatterns on CommonMessage { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _CommonMessage value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _CommonMessage() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _CommonMessage value) $default,){ final _that = this; switch (_that) { case _CommonMessage(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _CommonMessage value)? $default,){ final _that = this; switch (_that) { case _CommonMessage() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String id, String text, MessageLevel level, Duration duration, MessageActionState? actionState)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _CommonMessage() when $default != null: return $default(_that.id,_that.text,_that.level,_that.duration,_that.actionState);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String id, String text, MessageLevel level, Duration duration, MessageActionState? actionState) $default,) {final _that = this; switch (_that) { case _CommonMessage(): return $default(_that.id,_that.text,_that.level,_that.duration,_that.actionState);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String id, String text, MessageLevel level, Duration duration, MessageActionState? actionState)? $default,) {final _that = this; switch (_that) { case _CommonMessage() when $default != null: return $default(_that.id,_that.text,_that.level,_that.duration,_that.actionState);case _: return null; } } } /// @nodoc class _CommonMessage implements CommonMessage { const _CommonMessage({required this.id, required this.text, this.level = MessageLevel.info, this.duration = const Duration(seconds: 3), this.actionState}); @override final String id; @override final String text; @override@JsonKey() final MessageLevel level; @override@JsonKey() final Duration duration; @override final MessageActionState? actionState; /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$CommonMessageCopyWith<_CommonMessage> get copyWith => __$CommonMessageCopyWithImpl<_CommonMessage>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _CommonMessage&&(identical(other.id, id) || other.id == id)&&(identical(other.text, text) || other.text == text)&&(identical(other.level, level) || other.level == level)&&(identical(other.duration, duration) || other.duration == duration)&&(identical(other.actionState, actionState) || other.actionState == actionState)); } @override int get hashCode { return Object.hash(runtimeType,id,text,level,duration,actionState); } @override String toString() { return 'CommonMessage(id: $id, text: $text, level: $level, duration: $duration, actionState: $actionState)'; } } /// @nodoc abstract mixin class _$CommonMessageCopyWith<$Res> implements $CommonMessageCopyWith<$Res> { factory _$CommonMessageCopyWith(_CommonMessage value, $Res Function(_CommonMessage) _then) = __$CommonMessageCopyWithImpl; @override @useResult $Res call({ String id, String text, MessageLevel level, Duration duration, MessageActionState? actionState }); @override $MessageActionStateCopyWith<$Res>? get actionState; } /// @nodoc class __$CommonMessageCopyWithImpl<$Res> implements _$CommonMessageCopyWith<$Res> { __$CommonMessageCopyWithImpl(this._self, this._then); final _CommonMessage _self; final $Res Function(_CommonMessage) _then; /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? text = null,Object? level = null,Object? duration = null,Object? actionState = freezed,}) { return _then(_CommonMessage( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,text: null == text ? _self.text : text // ignore: cast_nullable_to_non_nullable as String,level: null == level ? _self.level : level // ignore: cast_nullable_to_non_nullable as MessageLevel,duration: null == duration ? _self.duration : duration // ignore: cast_nullable_to_non_nullable as Duration,actionState: freezed == actionState ? _self.actionState : actionState // ignore: cast_nullable_to_non_nullable as MessageActionState?, )); } /// Create a copy of CommonMessage /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MessageActionStateCopyWith<$Res>? get actionState { if (_self.actionState == null) { return null; } return $MessageActionStateCopyWith<$Res>(_self.actionState!, (value) { return _then(_self.copyWith(actionState: value)); }); } } /// @nodoc mixin _$MessageActionState { String get actionText; VoidCallback get action; /// Create a copy of MessageActionState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $MessageActionStateCopyWith get copyWith => _$MessageActionStateCopyWithImpl(this as MessageActionState, _$identity); @override bool operator ==(Object other) { final _this = this as MessageActionState; return identical(this, other) || (other.runtimeType == runtimeType&&other is MessageActionState&&(identical(other.actionText, _this.actionText) || other.actionText == _this.actionText)&&(identical(other.action, _this.action) || other.action == _this.action)); } @override int get hashCode { final _this = this as MessageActionState; return Object.hash(runtimeType,_this.actionText,_this.action); } @override String toString() { final _this = this as MessageActionState; return 'MessageActionState(actionText: ${_this.actionText}, action: ${_this.action})'; } } /// @nodoc abstract mixin class $MessageActionStateCopyWith<$Res> { factory $MessageActionStateCopyWith(MessageActionState value, $Res Function(MessageActionState) _then) = _$MessageActionStateCopyWithImpl; @useResult $Res call({ String actionText, VoidCallback action }); } /// @nodoc class _$MessageActionStateCopyWithImpl<$Res> implements $MessageActionStateCopyWith<$Res> { _$MessageActionStateCopyWithImpl(this._self, this._then); final MessageActionState _self; final $Res Function(MessageActionState) _then; /// Create a copy of MessageActionState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? actionText = null,Object? action = null,}) { return _then(MessageActionState( actionText: null == actionText ? _self.actionText : actionText // ignore: cast_nullable_to_non_nullable as String,action: null == action ? _self.action : action // ignore: cast_nullable_to_non_nullable as VoidCallback, )); } } /// Adds pattern-matching-related methods to [MessageActionState]. extension MessageActionStatePatterns on MessageActionState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _MessageActionState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _MessageActionState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _MessageActionState value) $default,){ final _that = this; switch (_that) { case _MessageActionState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _MessageActionState value)? $default,){ final _that = this; switch (_that) { case _MessageActionState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String actionText, VoidCallback action)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _MessageActionState() when $default != null: return $default(_that.actionText,_that.action);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String actionText, VoidCallback action) $default,) {final _that = this; switch (_that) { case _MessageActionState(): return $default(_that.actionText,_that.action);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String actionText, VoidCallback action)? $default,) {final _that = this; switch (_that) { case _MessageActionState() when $default != null: return $default(_that.actionText,_that.action);case _: return null; } } } /// @nodoc class _MessageActionState implements MessageActionState { const _MessageActionState({required this.actionText, required this.action}); @override final String actionText; @override final VoidCallback action; /// Create a copy of MessageActionState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$MessageActionStateCopyWith<_MessageActionState> get copyWith => __$MessageActionStateCopyWithImpl<_MessageActionState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _MessageActionState&&(identical(other.actionText, actionText) || other.actionText == actionText)&&(identical(other.action, action) || other.action == action)); } @override int get hashCode { return Object.hash(runtimeType,actionText,action); } @override String toString() { return 'MessageActionState(actionText: $actionText, action: $action)'; } } /// @nodoc abstract mixin class _$MessageActionStateCopyWith<$Res> implements $MessageActionStateCopyWith<$Res> { factory _$MessageActionStateCopyWith(_MessageActionState value, $Res Function(_MessageActionState) _then) = __$MessageActionStateCopyWithImpl; @override @useResult $Res call({ String actionText, VoidCallback action }); } /// @nodoc class __$MessageActionStateCopyWithImpl<$Res> implements _$MessageActionStateCopyWith<$Res> { __$MessageActionStateCopyWithImpl(this._self, this._then); final _MessageActionState _self; final $Res Function(_MessageActionState) _then; /// Create a copy of MessageActionState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? actionText = null,Object? action = null,}) { return _then(_MessageActionState( actionText: null == actionText ? _self.actionText : actionText // ignore: cast_nullable_to_non_nullable as String,action: null == action ? _self.action : action // ignore: cast_nullable_to_non_nullable as VoidCallback, )); } } /// @nodoc mixin _$ProfilesState { List get profiles; int? get currentProfileId; /// Create a copy of ProfilesState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ProfilesStateCopyWith get copyWith => _$ProfilesStateCopyWithImpl(this as ProfilesState, _$identity); @override bool operator ==(Object other) { final _this = this as ProfilesState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ProfilesState&&const DeepCollectionEquality().equals(other.profiles, _this.profiles)&&(identical(other.currentProfileId, _this.currentProfileId) || other.currentProfileId == _this.currentProfileId)); } @override int get hashCode { final _this = this as ProfilesState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.profiles),_this.currentProfileId); } @override String toString() { final _this = this as ProfilesState; return 'ProfilesState(profiles: ${_this.profiles}, currentProfileId: ${_this.currentProfileId})'; } } /// @nodoc abstract mixin class $ProfilesStateCopyWith<$Res> { factory $ProfilesStateCopyWith(ProfilesState value, $Res Function(ProfilesState) _then) = _$ProfilesStateCopyWithImpl; @useResult $Res call({ List profiles, int? currentProfileId }); } /// @nodoc class _$ProfilesStateCopyWithImpl<$Res> implements $ProfilesStateCopyWith<$Res> { _$ProfilesStateCopyWithImpl(this._self, this._then); final ProfilesState _self; final $Res Function(ProfilesState) _then; /// Create a copy of ProfilesState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? profiles = null,Object? currentProfileId = freezed,}) { return _then(ProfilesState( profiles: null == profiles ? _self.profiles : profiles // ignore: cast_nullable_to_non_nullable as List,currentProfileId: freezed == currentProfileId ? _self.currentProfileId : currentProfileId // ignore: cast_nullable_to_non_nullable as int?, )); } } /// Adds pattern-matching-related methods to [ProfilesState]. extension ProfilesStatePatterns on ProfilesState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ProfilesState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ProfilesState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ProfilesState value) $default,){ final _that = this; switch (_that) { case _ProfilesState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProfilesState value)? $default,){ final _that = this; switch (_that) { case _ProfilesState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List profiles, int? currentProfileId)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ProfilesState() when $default != null: return $default(_that.profiles,_that.currentProfileId);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List profiles, int? currentProfileId) $default,) {final _that = this; switch (_that) { case _ProfilesState(): return $default(_that.profiles,_that.currentProfileId);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List profiles, int? currentProfileId)? $default,) {final _that = this; switch (_that) { case _ProfilesState() when $default != null: return $default(_that.profiles,_that.currentProfileId);case _: return null; } } } /// @nodoc class _ProfilesState implements ProfilesState { const _ProfilesState({required List profiles, required this.currentProfileId}): _profiles = profiles; final List _profiles; @override List get profiles { if (_profiles is EqualUnmodifiableListView) return _profiles; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_profiles); } @override final int? currentProfileId; /// Create a copy of ProfilesState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ProfilesStateCopyWith<_ProfilesState> get copyWith => __$ProfilesStateCopyWithImpl<_ProfilesState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProfilesState&&const DeepCollectionEquality().equals(other.profiles, _profiles)&&(identical(other.currentProfileId, currentProfileId) || other.currentProfileId == currentProfileId)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_profiles),currentProfileId); } @override String toString() { return 'ProfilesState(profiles: $profiles, currentProfileId: $currentProfileId)'; } } /// @nodoc abstract mixin class _$ProfilesStateCopyWith<$Res> implements $ProfilesStateCopyWith<$Res> { factory _$ProfilesStateCopyWith(_ProfilesState value, $Res Function(_ProfilesState) _then) = __$ProfilesStateCopyWithImpl; @override @useResult $Res call({ List profiles, int? currentProfileId }); } /// @nodoc class __$ProfilesStateCopyWithImpl<$Res> implements _$ProfilesStateCopyWith<$Res> { __$ProfilesStateCopyWithImpl(this._self, this._then); final _ProfilesState _self; final $Res Function(_ProfilesState) _then; /// Create a copy of ProfilesState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? profiles = null,Object? currentProfileId = freezed,}) { return _then(_ProfilesState( profiles: null == profiles ? _self._profiles : profiles // ignore: cast_nullable_to_non_nullable as List,currentProfileId: freezed == currentProfileId ? _self.currentProfileId : currentProfileId // ignore: cast_nullable_to_non_nullable as int?, )); } } /// @nodoc mixin _$TrayState { Mode get mode; int get port; bool get autoLaunch; bool get systemProxy; bool get tunEnable; bool get isStart; bool get suspended; List get groups; Map get selectedMap; bool get showTrayTitle; bool get safeMode; Map get hotKeys; /// Create a copy of TrayState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TrayStateCopyWith get copyWith => _$TrayStateCopyWithImpl(this as TrayState, _$identity); @override bool operator ==(Object other) { final _this = this as TrayState; return identical(this, other) || (other.runtimeType == runtimeType&&other is TrayState&&(identical(other.mode, _this.mode) || other.mode == _this.mode)&&(identical(other.port, _this.port) || other.port == _this.port)&&(identical(other.autoLaunch, _this.autoLaunch) || other.autoLaunch == _this.autoLaunch)&&(identical(other.systemProxy, _this.systemProxy) || other.systemProxy == _this.systemProxy)&&(identical(other.tunEnable, _this.tunEnable) || other.tunEnable == _this.tunEnable)&&(identical(other.isStart, _this.isStart) || other.isStart == _this.isStart)&&(identical(other.suspended, _this.suspended) || other.suspended == _this.suspended)&&const DeepCollectionEquality().equals(other.groups, _this.groups)&&const DeepCollectionEquality().equals(other.selectedMap, _this.selectedMap)&&(identical(other.showTrayTitle, _this.showTrayTitle) || other.showTrayTitle == _this.showTrayTitle)&&(identical(other.safeMode, _this.safeMode) || other.safeMode == _this.safeMode)&&const DeepCollectionEquality().equals(other.hotKeys, _this.hotKeys)); } @override int get hashCode { final _this = this as TrayState; return Object.hash(runtimeType,_this.mode,_this.port,_this.autoLaunch,_this.systemProxy,_this.tunEnable,_this.isStart,_this.suspended,const DeepCollectionEquality().hash(_this.groups),const DeepCollectionEquality().hash(_this.selectedMap),_this.showTrayTitle,_this.safeMode,const DeepCollectionEquality().hash(_this.hotKeys)); } @override String toString() { final _this = this as TrayState; return 'TrayState(mode: ${_this.mode}, port: ${_this.port}, autoLaunch: ${_this.autoLaunch}, systemProxy: ${_this.systemProxy}, tunEnable: ${_this.tunEnable}, isStart: ${_this.isStart}, suspended: ${_this.suspended}, groups: ${_this.groups}, selectedMap: ${_this.selectedMap}, showTrayTitle: ${_this.showTrayTitle}, safeMode: ${_this.safeMode}, hotKeys: ${_this.hotKeys})'; } } /// @nodoc abstract mixin class $TrayStateCopyWith<$Res> { factory $TrayStateCopyWith(TrayState value, $Res Function(TrayState) _then) = _$TrayStateCopyWithImpl; @useResult $Res call({ Mode mode, int port, bool autoLaunch, bool systemProxy, bool tunEnable, bool isStart, bool suspended, List groups, Map selectedMap, bool showTrayTitle, bool safeMode, Map hotKeys }); } /// @nodoc class _$TrayStateCopyWithImpl<$Res> implements $TrayStateCopyWith<$Res> { _$TrayStateCopyWithImpl(this._self, this._then); final TrayState _self; final $Res Function(TrayState) _then; /// Create a copy of TrayState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? mode = null,Object? port = null,Object? autoLaunch = null,Object? systemProxy = null,Object? tunEnable = null,Object? isStart = null,Object? suspended = null,Object? groups = null,Object? selectedMap = null,Object? showTrayTitle = null,Object? safeMode = null,Object? hotKeys = null,}) { return _then(TrayState( mode: null == mode ? _self.mode : mode // ignore: cast_nullable_to_non_nullable as Mode,port: null == port ? _self.port : port // ignore: cast_nullable_to_non_nullable as int,autoLaunch: null == autoLaunch ? _self.autoLaunch : autoLaunch // ignore: cast_nullable_to_non_nullable as bool,systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,tunEnable: null == tunEnable ? _self.tunEnable : tunEnable // ignore: cast_nullable_to_non_nullable as bool,isStart: null == isStart ? _self.isStart : isStart // ignore: cast_nullable_to_non_nullable as bool,suspended: null == suspended ? _self.suspended : suspended // ignore: cast_nullable_to_non_nullable as bool,groups: null == groups ? _self.groups : groups // ignore: cast_nullable_to_non_nullable as List,selectedMap: null == selectedMap ? _self.selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map,showTrayTitle: null == showTrayTitle ? _self.showTrayTitle : showTrayTitle // ignore: cast_nullable_to_non_nullable as bool,safeMode: null == safeMode ? _self.safeMode : safeMode // ignore: cast_nullable_to_non_nullable as bool,hotKeys: null == hotKeys ? _self.hotKeys : hotKeys // ignore: cast_nullable_to_non_nullable as Map, )); } } /// Adds pattern-matching-related methods to [TrayState]. extension TrayStatePatterns on TrayState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _TrayState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _TrayState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _TrayState value) $default,){ final _that = this; switch (_that) { case _TrayState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _TrayState value)? $default,){ final _that = this; switch (_that) { case _TrayState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( Mode mode, int port, bool autoLaunch, bool systemProxy, bool tunEnable, bool isStart, bool suspended, List groups, Map selectedMap, bool showTrayTitle, bool safeMode, Map hotKeys)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _TrayState() when $default != null: return $default(_that.mode,_that.port,_that.autoLaunch,_that.systemProxy,_that.tunEnable,_that.isStart,_that.suspended,_that.groups,_that.selectedMap,_that.showTrayTitle,_that.safeMode,_that.hotKeys);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( Mode mode, int port, bool autoLaunch, bool systemProxy, bool tunEnable, bool isStart, bool suspended, List groups, Map selectedMap, bool showTrayTitle, bool safeMode, Map hotKeys) $default,) {final _that = this; switch (_that) { case _TrayState(): return $default(_that.mode,_that.port,_that.autoLaunch,_that.systemProxy,_that.tunEnable,_that.isStart,_that.suspended,_that.groups,_that.selectedMap,_that.showTrayTitle,_that.safeMode,_that.hotKeys);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( Mode mode, int port, bool autoLaunch, bool systemProxy, bool tunEnable, bool isStart, bool suspended, List groups, Map selectedMap, bool showTrayTitle, bool safeMode, Map hotKeys)? $default,) {final _that = this; switch (_that) { case _TrayState() when $default != null: return $default(_that.mode,_that.port,_that.autoLaunch,_that.systemProxy,_that.tunEnable,_that.isStart,_that.suspended,_that.groups,_that.selectedMap,_that.showTrayTitle,_that.safeMode,_that.hotKeys);case _: return null; } } } /// @nodoc class _TrayState implements TrayState { const _TrayState({required this.mode, required this.port, required this.autoLaunch, required this.systemProxy, required this.tunEnable, required this.isStart, this.suspended = false, required List groups, required Map selectedMap, required this.showTrayTitle, required this.safeMode, Map hotKeys = const {}}): _groups = groups,_selectedMap = selectedMap,_hotKeys = hotKeys; @override final Mode mode; @override final int port; @override final bool autoLaunch; @override final bool systemProxy; @override final bool tunEnable; @override final bool isStart; @override@JsonKey() final bool suspended; final List _groups; @override List get groups { if (_groups is EqualUnmodifiableListView) return _groups; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_groups); } final Map _selectedMap; @override Map get selectedMap { if (_selectedMap is EqualUnmodifiableMapView) return _selectedMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_selectedMap); } @override final bool showTrayTitle; @override final bool safeMode; final Map _hotKeys; @override@JsonKey() Map get hotKeys { if (_hotKeys is EqualUnmodifiableMapView) return _hotKeys; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_hotKeys); } /// Create a copy of TrayState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$TrayStateCopyWith<_TrayState> get copyWith => __$TrayStateCopyWithImpl<_TrayState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _TrayState&&(identical(other.mode, mode) || other.mode == mode)&&(identical(other.port, port) || other.port == port)&&(identical(other.autoLaunch, autoLaunch) || other.autoLaunch == autoLaunch)&&(identical(other.systemProxy, systemProxy) || other.systemProxy == systemProxy)&&(identical(other.tunEnable, tunEnable) || other.tunEnable == tunEnable)&&(identical(other.isStart, isStart) || other.isStart == isStart)&&(identical(other.suspended, suspended) || other.suspended == suspended)&&const DeepCollectionEquality().equals(other.groups, _groups)&&const DeepCollectionEquality().equals(other.selectedMap, _selectedMap)&&(identical(other.showTrayTitle, showTrayTitle) || other.showTrayTitle == showTrayTitle)&&(identical(other.safeMode, safeMode) || other.safeMode == safeMode)&&const DeepCollectionEquality().equals(other.hotKeys, _hotKeys)); } @override int get hashCode { return Object.hash(runtimeType,mode,port,autoLaunch,systemProxy,tunEnable,isStart,suspended,const DeepCollectionEquality().hash(_groups),const DeepCollectionEquality().hash(_selectedMap),showTrayTitle,safeMode,const DeepCollectionEquality().hash(_hotKeys)); } @override String toString() { return 'TrayState(mode: $mode, port: $port, autoLaunch: $autoLaunch, systemProxy: $systemProxy, tunEnable: $tunEnable, isStart: $isStart, suspended: $suspended, groups: $groups, selectedMap: $selectedMap, showTrayTitle: $showTrayTitle, safeMode: $safeMode, hotKeys: $hotKeys)'; } } /// @nodoc abstract mixin class _$TrayStateCopyWith<$Res> implements $TrayStateCopyWith<$Res> { factory _$TrayStateCopyWith(_TrayState value, $Res Function(_TrayState) _then) = __$TrayStateCopyWithImpl; @override @useResult $Res call({ Mode mode, int port, bool autoLaunch, bool systemProxy, bool tunEnable, bool isStart, bool suspended, List groups, Map selectedMap, bool showTrayTitle, bool safeMode, Map hotKeys }); } /// @nodoc class __$TrayStateCopyWithImpl<$Res> implements _$TrayStateCopyWith<$Res> { __$TrayStateCopyWithImpl(this._self, this._then); final _TrayState _self; final $Res Function(_TrayState) _then; /// Create a copy of TrayState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? mode = null,Object? port = null,Object? autoLaunch = null,Object? systemProxy = null,Object? tunEnable = null,Object? isStart = null,Object? suspended = null,Object? groups = null,Object? selectedMap = null,Object? showTrayTitle = null,Object? safeMode = null,Object? hotKeys = null,}) { return _then(_TrayState( mode: null == mode ? _self.mode : mode // ignore: cast_nullable_to_non_nullable as Mode,port: null == port ? _self.port : port // ignore: cast_nullable_to_non_nullable as int,autoLaunch: null == autoLaunch ? _self.autoLaunch : autoLaunch // ignore: cast_nullable_to_non_nullable as bool,systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,tunEnable: null == tunEnable ? _self.tunEnable : tunEnable // ignore: cast_nullable_to_non_nullable as bool,isStart: null == isStart ? _self.isStart : isStart // ignore: cast_nullable_to_non_nullable as bool,suspended: null == suspended ? _self.suspended : suspended // ignore: cast_nullable_to_non_nullable as bool,groups: null == groups ? _self._groups : groups // ignore: cast_nullable_to_non_nullable as List,selectedMap: null == selectedMap ? _self._selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map,showTrayTitle: null == showTrayTitle ? _self.showTrayTitle : showTrayTitle // ignore: cast_nullable_to_non_nullable as bool,safeMode: null == safeMode ? _self.safeMode : safeMode // ignore: cast_nullable_to_non_nullable as bool,hotKeys: null == hotKeys ? _self._hotKeys : hotKeys // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc mixin _$TrayTitleState { Traffic get traffic; bool get showTrayTitle; /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TrayTitleStateCopyWith get copyWith => _$TrayTitleStateCopyWithImpl(this as TrayTitleState, _$identity); @override bool operator ==(Object other) { final _this = this as TrayTitleState; return identical(this, other) || (other.runtimeType == runtimeType&&other is TrayTitleState&&(identical(other.traffic, _this.traffic) || other.traffic == _this.traffic)&&(identical(other.showTrayTitle, _this.showTrayTitle) || other.showTrayTitle == _this.showTrayTitle)); } @override int get hashCode { final _this = this as TrayTitleState; return Object.hash(runtimeType,_this.traffic,_this.showTrayTitle); } @override String toString() { final _this = this as TrayTitleState; return 'TrayTitleState(traffic: ${_this.traffic}, showTrayTitle: ${_this.showTrayTitle})'; } } /// @nodoc abstract mixin class $TrayTitleStateCopyWith<$Res> { factory $TrayTitleStateCopyWith(TrayTitleState value, $Res Function(TrayTitleState) _then) = _$TrayTitleStateCopyWithImpl; @useResult $Res call({ Traffic traffic, bool showTrayTitle }); $TrafficCopyWith<$Res> get traffic; } /// @nodoc class _$TrayTitleStateCopyWithImpl<$Res> implements $TrayTitleStateCopyWith<$Res> { _$TrayTitleStateCopyWithImpl(this._self, this._then); final TrayTitleState _self; final $Res Function(TrayTitleState) _then; /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? traffic = null,Object? showTrayTitle = null,}) { return _then(TrayTitleState( traffic: null == traffic ? _self.traffic : traffic // ignore: cast_nullable_to_non_nullable as Traffic,showTrayTitle: null == showTrayTitle ? _self.showTrayTitle : showTrayTitle // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $TrafficCopyWith<$Res> get traffic { return $TrafficCopyWith<$Res>(_self.traffic, (value) { return _then(_self.copyWith(traffic: value)); }); } } /// Adds pattern-matching-related methods to [TrayTitleState]. extension TrayTitleStatePatterns on TrayTitleState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _TrayTitleState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _TrayTitleState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _TrayTitleState value) $default,){ final _that = this; switch (_that) { case _TrayTitleState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _TrayTitleState value)? $default,){ final _that = this; switch (_that) { case _TrayTitleState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( Traffic traffic, bool showTrayTitle)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _TrayTitleState() when $default != null: return $default(_that.traffic,_that.showTrayTitle);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( Traffic traffic, bool showTrayTitle) $default,) {final _that = this; switch (_that) { case _TrayTitleState(): return $default(_that.traffic,_that.showTrayTitle);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( Traffic traffic, bool showTrayTitle)? $default,) {final _that = this; switch (_that) { case _TrayTitleState() when $default != null: return $default(_that.traffic,_that.showTrayTitle);case _: return null; } } } /// @nodoc class _TrayTitleState implements TrayTitleState { const _TrayTitleState({required this.traffic, required this.showTrayTitle}); @override final Traffic traffic; @override final bool showTrayTitle; /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$TrayTitleStateCopyWith<_TrayTitleState> get copyWith => __$TrayTitleStateCopyWithImpl<_TrayTitleState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _TrayTitleState&&(identical(other.traffic, traffic) || other.traffic == traffic)&&(identical(other.showTrayTitle, showTrayTitle) || other.showTrayTitle == showTrayTitle)); } @override int get hashCode { return Object.hash(runtimeType,traffic,showTrayTitle); } @override String toString() { return 'TrayTitleState(traffic: $traffic, showTrayTitle: $showTrayTitle)'; } } /// @nodoc abstract mixin class _$TrayTitleStateCopyWith<$Res> implements $TrayTitleStateCopyWith<$Res> { factory _$TrayTitleStateCopyWith(_TrayTitleState value, $Res Function(_TrayTitleState) _then) = __$TrayTitleStateCopyWithImpl; @override @useResult $Res call({ Traffic traffic, bool showTrayTitle }); @override $TrafficCopyWith<$Res> get traffic; } /// @nodoc class __$TrayTitleStateCopyWithImpl<$Res> implements _$TrayTitleStateCopyWith<$Res> { __$TrayTitleStateCopyWithImpl(this._self, this._then); final _TrayTitleState _self; final $Res Function(_TrayTitleState) _then; /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? traffic = null,Object? showTrayTitle = null,}) { return _then(_TrayTitleState( traffic: null == traffic ? _self.traffic : traffic // ignore: cast_nullable_to_non_nullable as Traffic,showTrayTitle: null == showTrayTitle ? _self.showTrayTitle : showTrayTitle // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of TrayTitleState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $TrafficCopyWith<$Res> get traffic { return $TrafficCopyWith<$Res>(_self.traffic, (value) { return _then(_self.copyWith(traffic: value)); }); } } /// @nodoc mixin _$NavigationState { PageLabel get pageLabel; List get navigationItems; ViewMode get viewMode; String? get locale; int get currentIndex; /// Create a copy of NavigationState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $NavigationStateCopyWith get copyWith => _$NavigationStateCopyWithImpl(this as NavigationState, _$identity); @override bool operator ==(Object other) { final _this = this as NavigationState; return identical(this, other) || (other.runtimeType == runtimeType&&other is NavigationState&&(identical(other.pageLabel, _this.pageLabel) || other.pageLabel == _this.pageLabel)&&const DeepCollectionEquality().equals(other.navigationItems, _this.navigationItems)&&(identical(other.viewMode, _this.viewMode) || other.viewMode == _this.viewMode)&&(identical(other.locale, _this.locale) || other.locale == _this.locale)&&(identical(other.currentIndex, _this.currentIndex) || other.currentIndex == _this.currentIndex)); } @override int get hashCode { final _this = this as NavigationState; return Object.hash(runtimeType,_this.pageLabel,const DeepCollectionEquality().hash(_this.navigationItems),_this.viewMode,_this.locale,_this.currentIndex); } @override String toString() { final _this = this as NavigationState; return 'NavigationState(pageLabel: ${_this.pageLabel}, navigationItems: ${_this.navigationItems}, viewMode: ${_this.viewMode}, locale: ${_this.locale}, currentIndex: ${_this.currentIndex})'; } } /// @nodoc abstract mixin class $NavigationStateCopyWith<$Res> { factory $NavigationStateCopyWith(NavigationState value, $Res Function(NavigationState) _then) = _$NavigationStateCopyWithImpl; @useResult $Res call({ PageLabel pageLabel, List navigationItems, ViewMode viewMode, String? locale, int currentIndex }); } /// @nodoc class _$NavigationStateCopyWithImpl<$Res> implements $NavigationStateCopyWith<$Res> { _$NavigationStateCopyWithImpl(this._self, this._then); final NavigationState _self; final $Res Function(NavigationState) _then; /// Create a copy of NavigationState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? pageLabel = null,Object? navigationItems = null,Object? viewMode = null,Object? locale = freezed,Object? currentIndex = null,}) { return _then(NavigationState( pageLabel: null == pageLabel ? _self.pageLabel : pageLabel // ignore: cast_nullable_to_non_nullable as PageLabel,navigationItems: null == navigationItems ? _self.navigationItems : navigationItems // ignore: cast_nullable_to_non_nullable as List,viewMode: null == viewMode ? _self.viewMode : viewMode // ignore: cast_nullable_to_non_nullable as ViewMode,locale: freezed == locale ? _self.locale : locale // ignore: cast_nullable_to_non_nullable as String?,currentIndex: null == currentIndex ? _self.currentIndex : currentIndex // ignore: cast_nullable_to_non_nullable as int, )); } } /// Adds pattern-matching-related methods to [NavigationState]. extension NavigationStatePatterns on NavigationState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _NavigationState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _NavigationState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _NavigationState value) $default,){ final _that = this; switch (_that) { case _NavigationState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _NavigationState value)? $default,){ final _that = this; switch (_that) { case _NavigationState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( PageLabel pageLabel, List navigationItems, ViewMode viewMode, String? locale, int currentIndex)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _NavigationState() when $default != null: return $default(_that.pageLabel,_that.navigationItems,_that.viewMode,_that.locale,_that.currentIndex);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( PageLabel pageLabel, List navigationItems, ViewMode viewMode, String? locale, int currentIndex) $default,) {final _that = this; switch (_that) { case _NavigationState(): return $default(_that.pageLabel,_that.navigationItems,_that.viewMode,_that.locale,_that.currentIndex);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( PageLabel pageLabel, List navigationItems, ViewMode viewMode, String? locale, int currentIndex)? $default,) {final _that = this; switch (_that) { case _NavigationState() when $default != null: return $default(_that.pageLabel,_that.navigationItems,_that.viewMode,_that.locale,_that.currentIndex);case _: return null; } } } /// @nodoc class _NavigationState implements NavigationState { const _NavigationState({required this.pageLabel, required List navigationItems, required this.viewMode, required this.locale, required this.currentIndex}): _navigationItems = navigationItems; @override final PageLabel pageLabel; final List _navigationItems; @override List get navigationItems { if (_navigationItems is EqualUnmodifiableListView) return _navigationItems; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_navigationItems); } @override final ViewMode viewMode; @override final String? locale; @override final int currentIndex; /// Create a copy of NavigationState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$NavigationStateCopyWith<_NavigationState> get copyWith => __$NavigationStateCopyWithImpl<_NavigationState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _NavigationState&&(identical(other.pageLabel, pageLabel) || other.pageLabel == pageLabel)&&const DeepCollectionEquality().equals(other.navigationItems, _navigationItems)&&(identical(other.viewMode, viewMode) || other.viewMode == viewMode)&&(identical(other.locale, locale) || other.locale == locale)&&(identical(other.currentIndex, currentIndex) || other.currentIndex == currentIndex)); } @override int get hashCode { return Object.hash(runtimeType,pageLabel,const DeepCollectionEquality().hash(_navigationItems),viewMode,locale,currentIndex); } @override String toString() { return 'NavigationState(pageLabel: $pageLabel, navigationItems: $navigationItems, viewMode: $viewMode, locale: $locale, currentIndex: $currentIndex)'; } } /// @nodoc abstract mixin class _$NavigationStateCopyWith<$Res> implements $NavigationStateCopyWith<$Res> { factory _$NavigationStateCopyWith(_NavigationState value, $Res Function(_NavigationState) _then) = __$NavigationStateCopyWithImpl; @override @useResult $Res call({ PageLabel pageLabel, List navigationItems, ViewMode viewMode, String? locale, int currentIndex }); } /// @nodoc class __$NavigationStateCopyWithImpl<$Res> implements _$NavigationStateCopyWith<$Res> { __$NavigationStateCopyWithImpl(this._self, this._then); final _NavigationState _self; final $Res Function(_NavigationState) _then; /// Create a copy of NavigationState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? pageLabel = null,Object? navigationItems = null,Object? viewMode = null,Object? locale = freezed,Object? currentIndex = null,}) { return _then(_NavigationState( pageLabel: null == pageLabel ? _self.pageLabel : pageLabel // ignore: cast_nullable_to_non_nullable as PageLabel,navigationItems: null == navigationItems ? _self._navigationItems : navigationItems // ignore: cast_nullable_to_non_nullable as List,viewMode: null == viewMode ? _self.viewMode : viewMode // ignore: cast_nullable_to_non_nullable as ViewMode,locale: freezed == locale ? _self.locale : locale // ignore: cast_nullable_to_non_nullable as String?,currentIndex: null == currentIndex ? _self.currentIndex : currentIndex // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc mixin _$GroupsState { List get value; /// Create a copy of GroupsState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $GroupsStateCopyWith get copyWith => _$GroupsStateCopyWithImpl(this as GroupsState, _$identity); @override bool operator ==(Object other) { final _this = this as GroupsState; return identical(this, other) || (other.runtimeType == runtimeType&&other is GroupsState&&const DeepCollectionEquality().equals(other.value, _this.value)); } @override int get hashCode { final _this = this as GroupsState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.value)); } @override String toString() { final _this = this as GroupsState; return 'GroupsState(value: ${_this.value})'; } } /// @nodoc abstract mixin class $GroupsStateCopyWith<$Res> { factory $GroupsStateCopyWith(GroupsState value, $Res Function(GroupsState) _then) = _$GroupsStateCopyWithImpl; @useResult $Res call({ List value }); } /// @nodoc class _$GroupsStateCopyWithImpl<$Res> implements $GroupsStateCopyWith<$Res> { _$GroupsStateCopyWithImpl(this._self, this._then); final GroupsState _self; final $Res Function(GroupsState) _then; /// Create a copy of GroupsState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? value = null,}) { return _then(GroupsState( value: null == value ? _self.value : value // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [GroupsState]. extension GroupsStatePatterns on GroupsState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _GroupsState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _GroupsState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _GroupsState value) $default,){ final _that = this; switch (_that) { case _GroupsState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _GroupsState value)? $default,){ final _that = this; switch (_that) { case _GroupsState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List value)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _GroupsState() when $default != null: return $default(_that.value);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List value) $default,) {final _that = this; switch (_that) { case _GroupsState(): return $default(_that.value);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List value)? $default,) {final _that = this; switch (_that) { case _GroupsState() when $default != null: return $default(_that.value);case _: return null; } } } /// @nodoc class _GroupsState implements GroupsState { const _GroupsState({required List value}): _value = value; final List _value; @override List get value { if (_value is EqualUnmodifiableListView) return _value; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_value); } /// Create a copy of GroupsState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$GroupsStateCopyWith<_GroupsState> get copyWith => __$GroupsStateCopyWithImpl<_GroupsState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _GroupsState&&const DeepCollectionEquality().equals(other.value, _value)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_value)); } @override String toString() { return 'GroupsState(value: $value)'; } } /// @nodoc abstract mixin class _$GroupsStateCopyWith<$Res> implements $GroupsStateCopyWith<$Res> { factory _$GroupsStateCopyWith(_GroupsState value, $Res Function(_GroupsState) _then) = __$GroupsStateCopyWithImpl; @override @useResult $Res call({ List value }); } /// @nodoc class __$GroupsStateCopyWithImpl<$Res> implements _$GroupsStateCopyWith<$Res> { __$GroupsStateCopyWithImpl(this._self, this._then); final _GroupsState _self; final $Res Function(_GroupsState) _then; /// Create a copy of GroupsState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? value = null,}) { return _then(_GroupsState( value: null == value ? _self._value : value // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc mixin _$NavigationItemsState { List get value; /// Create a copy of NavigationItemsState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $NavigationItemsStateCopyWith get copyWith => _$NavigationItemsStateCopyWithImpl(this as NavigationItemsState, _$identity); @override bool operator ==(Object other) { final _this = this as NavigationItemsState; return identical(this, other) || (other.runtimeType == runtimeType&&other is NavigationItemsState&&const DeepCollectionEquality().equals(other.value, _this.value)); } @override int get hashCode { final _this = this as NavigationItemsState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.value)); } @override String toString() { final _this = this as NavigationItemsState; return 'NavigationItemsState(value: ${_this.value})'; } } /// @nodoc abstract mixin class $NavigationItemsStateCopyWith<$Res> { factory $NavigationItemsStateCopyWith(NavigationItemsState value, $Res Function(NavigationItemsState) _then) = _$NavigationItemsStateCopyWithImpl; @useResult $Res call({ List value }); } /// @nodoc class _$NavigationItemsStateCopyWithImpl<$Res> implements $NavigationItemsStateCopyWith<$Res> { _$NavigationItemsStateCopyWithImpl(this._self, this._then); final NavigationItemsState _self; final $Res Function(NavigationItemsState) _then; /// Create a copy of NavigationItemsState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? value = null,}) { return _then(NavigationItemsState( value: null == value ? _self.value : value // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [NavigationItemsState]. extension NavigationItemsStatePatterns on NavigationItemsState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _NavigationItemsState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _NavigationItemsState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _NavigationItemsState value) $default,){ final _that = this; switch (_that) { case _NavigationItemsState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _NavigationItemsState value)? $default,){ final _that = this; switch (_that) { case _NavigationItemsState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List value)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _NavigationItemsState() when $default != null: return $default(_that.value);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List value) $default,) {final _that = this; switch (_that) { case _NavigationItemsState(): return $default(_that.value);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List value)? $default,) {final _that = this; switch (_that) { case _NavigationItemsState() when $default != null: return $default(_that.value);case _: return null; } } } /// @nodoc class _NavigationItemsState implements NavigationItemsState { const _NavigationItemsState({required List value}): _value = value; final List _value; @override List get value { if (_value is EqualUnmodifiableListView) return _value; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_value); } /// Create a copy of NavigationItemsState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$NavigationItemsStateCopyWith<_NavigationItemsState> get copyWith => __$NavigationItemsStateCopyWithImpl<_NavigationItemsState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _NavigationItemsState&&const DeepCollectionEquality().equals(other.value, _value)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_value)); } @override String toString() { return 'NavigationItemsState(value: $value)'; } } /// @nodoc abstract mixin class _$NavigationItemsStateCopyWith<$Res> implements $NavigationItemsStateCopyWith<$Res> { factory _$NavigationItemsStateCopyWith(_NavigationItemsState value, $Res Function(_NavigationItemsState) _then) = __$NavigationItemsStateCopyWithImpl; @override @useResult $Res call({ List value }); } /// @nodoc class __$NavigationItemsStateCopyWithImpl<$Res> implements _$NavigationItemsStateCopyWith<$Res> { __$NavigationItemsStateCopyWithImpl(this._self, this._then); final _NavigationItemsState _self; final $Res Function(_NavigationItemsState) _then; /// Create a copy of NavigationItemsState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? value = null,}) { return _then(_NavigationItemsState( value: null == value ? _self._value : value // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc mixin _$ProxiesListState { List get groups; Set get currentUnfoldSet; ProxyCardType get proxyCardType; /// Create a copy of ProxiesListState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ProxiesListStateCopyWith get copyWith => _$ProxiesListStateCopyWithImpl(this as ProxiesListState, _$identity); @override bool operator ==(Object other) { final _this = this as ProxiesListState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ProxiesListState&&const DeepCollectionEquality().equals(other.groups, _this.groups)&&const DeepCollectionEquality().equals(other.currentUnfoldSet, _this.currentUnfoldSet)&&(identical(other.proxyCardType, _this.proxyCardType) || other.proxyCardType == _this.proxyCardType)); } @override int get hashCode { final _this = this as ProxiesListState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.groups),const DeepCollectionEquality().hash(_this.currentUnfoldSet),_this.proxyCardType); } @override String toString() { final _this = this as ProxiesListState; return 'ProxiesListState(groups: ${_this.groups}, currentUnfoldSet: ${_this.currentUnfoldSet}, proxyCardType: ${_this.proxyCardType})'; } } /// @nodoc abstract mixin class $ProxiesListStateCopyWith<$Res> { factory $ProxiesListStateCopyWith(ProxiesListState value, $Res Function(ProxiesListState) _then) = _$ProxiesListStateCopyWithImpl; @useResult $Res call({ List groups, Set currentUnfoldSet, ProxyCardType proxyCardType }); } /// @nodoc class _$ProxiesListStateCopyWithImpl<$Res> implements $ProxiesListStateCopyWith<$Res> { _$ProxiesListStateCopyWithImpl(this._self, this._then); final ProxiesListState _self; final $Res Function(ProxiesListState) _then; /// Create a copy of ProxiesListState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? groups = null,Object? currentUnfoldSet = null,Object? proxyCardType = null,}) { return _then(ProxiesListState( groups: null == groups ? _self.groups : groups // ignore: cast_nullable_to_non_nullable as List,currentUnfoldSet: null == currentUnfoldSet ? _self.currentUnfoldSet : currentUnfoldSet // ignore: cast_nullable_to_non_nullable as Set,proxyCardType: null == proxyCardType ? _self.proxyCardType : proxyCardType // ignore: cast_nullable_to_non_nullable as ProxyCardType, )); } } /// Adds pattern-matching-related methods to [ProxiesListState]. extension ProxiesListStatePatterns on ProxiesListState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ProxiesListState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ProxiesListState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ProxiesListState value) $default,){ final _that = this; switch (_that) { case _ProxiesListState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProxiesListState value)? $default,){ final _that = this; switch (_that) { case _ProxiesListState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List groups, Set currentUnfoldSet, ProxyCardType proxyCardType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ProxiesListState() when $default != null: return $default(_that.groups,_that.currentUnfoldSet,_that.proxyCardType);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List groups, Set currentUnfoldSet, ProxyCardType proxyCardType) $default,) {final _that = this; switch (_that) { case _ProxiesListState(): return $default(_that.groups,_that.currentUnfoldSet,_that.proxyCardType);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List groups, Set currentUnfoldSet, ProxyCardType proxyCardType)? $default,) {final _that = this; switch (_that) { case _ProxiesListState() when $default != null: return $default(_that.groups,_that.currentUnfoldSet,_that.proxyCardType);case _: return null; } } } /// @nodoc class _ProxiesListState implements ProxiesListState { const _ProxiesListState({required List groups, required Set currentUnfoldSet, required this.proxyCardType}): _groups = groups,_currentUnfoldSet = currentUnfoldSet; final List _groups; @override List get groups { if (_groups is EqualUnmodifiableListView) return _groups; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_groups); } final Set _currentUnfoldSet; @override Set get currentUnfoldSet { if (_currentUnfoldSet is EqualUnmodifiableSetView) return _currentUnfoldSet; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(_currentUnfoldSet); } @override final ProxyCardType proxyCardType; /// Create a copy of ProxiesListState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ProxiesListStateCopyWith<_ProxiesListState> get copyWith => __$ProxiesListStateCopyWithImpl<_ProxiesListState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProxiesListState&&const DeepCollectionEquality().equals(other.groups, _groups)&&const DeepCollectionEquality().equals(other.currentUnfoldSet, _currentUnfoldSet)&&(identical(other.proxyCardType, proxyCardType) || other.proxyCardType == proxyCardType)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_groups),const DeepCollectionEquality().hash(_currentUnfoldSet),proxyCardType); } @override String toString() { return 'ProxiesListState(groups: $groups, currentUnfoldSet: $currentUnfoldSet, proxyCardType: $proxyCardType)'; } } /// @nodoc abstract mixin class _$ProxiesListStateCopyWith<$Res> implements $ProxiesListStateCopyWith<$Res> { factory _$ProxiesListStateCopyWith(_ProxiesListState value, $Res Function(_ProxiesListState) _then) = __$ProxiesListStateCopyWithImpl; @override @useResult $Res call({ List groups, Set currentUnfoldSet, ProxyCardType proxyCardType }); } /// @nodoc class __$ProxiesListStateCopyWithImpl<$Res> implements _$ProxiesListStateCopyWith<$Res> { __$ProxiesListStateCopyWithImpl(this._self, this._then); final _ProxiesListState _self; final $Res Function(_ProxiesListState) _then; /// Create a copy of ProxiesListState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? groups = null,Object? currentUnfoldSet = null,Object? proxyCardType = null,}) { return _then(_ProxiesListState( groups: null == groups ? _self._groups : groups // ignore: cast_nullable_to_non_nullable as List,currentUnfoldSet: null == currentUnfoldSet ? _self._currentUnfoldSet : currentUnfoldSet // ignore: cast_nullable_to_non_nullable as Set,proxyCardType: null == proxyCardType ? _self.proxyCardType : proxyCardType // ignore: cast_nullable_to_non_nullable as ProxyCardType, )); } } /// @nodoc mixin _$ProxiesTabState { List get groups; String? get currentGroupName; ProxyCardType get proxyCardType; /// Create a copy of ProxiesTabState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ProxiesTabStateCopyWith get copyWith => _$ProxiesTabStateCopyWithImpl(this as ProxiesTabState, _$identity); @override bool operator ==(Object other) { final _this = this as ProxiesTabState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ProxiesTabState&&const DeepCollectionEquality().equals(other.groups, _this.groups)&&(identical(other.currentGroupName, _this.currentGroupName) || other.currentGroupName == _this.currentGroupName)&&(identical(other.proxyCardType, _this.proxyCardType) || other.proxyCardType == _this.proxyCardType)); } @override int get hashCode { final _this = this as ProxiesTabState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.groups),_this.currentGroupName,_this.proxyCardType); } @override String toString() { final _this = this as ProxiesTabState; return 'ProxiesTabState(groups: ${_this.groups}, currentGroupName: ${_this.currentGroupName}, proxyCardType: ${_this.proxyCardType})'; } } /// @nodoc abstract mixin class $ProxiesTabStateCopyWith<$Res> { factory $ProxiesTabStateCopyWith(ProxiesTabState value, $Res Function(ProxiesTabState) _then) = _$ProxiesTabStateCopyWithImpl; @useResult $Res call({ List groups, String? currentGroupName, ProxyCardType proxyCardType }); } /// @nodoc class _$ProxiesTabStateCopyWithImpl<$Res> implements $ProxiesTabStateCopyWith<$Res> { _$ProxiesTabStateCopyWithImpl(this._self, this._then); final ProxiesTabState _self; final $Res Function(ProxiesTabState) _then; /// Create a copy of ProxiesTabState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? groups = null,Object? currentGroupName = freezed,Object? proxyCardType = null,}) { return _then(ProxiesTabState( groups: null == groups ? _self.groups : groups // ignore: cast_nullable_to_non_nullable as List,currentGroupName: freezed == currentGroupName ? _self.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?,proxyCardType: null == proxyCardType ? _self.proxyCardType : proxyCardType // ignore: cast_nullable_to_non_nullable as ProxyCardType, )); } } /// Adds pattern-matching-related methods to [ProxiesTabState]. extension ProxiesTabStatePatterns on ProxiesTabState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ProxiesTabState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ProxiesTabState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ProxiesTabState value) $default,){ final _that = this; switch (_that) { case _ProxiesTabState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProxiesTabState value)? $default,){ final _that = this; switch (_that) { case _ProxiesTabState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List groups, String? currentGroupName, ProxyCardType proxyCardType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ProxiesTabState() when $default != null: return $default(_that.groups,_that.currentGroupName,_that.proxyCardType);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List groups, String? currentGroupName, ProxyCardType proxyCardType) $default,) {final _that = this; switch (_that) { case _ProxiesTabState(): return $default(_that.groups,_that.currentGroupName,_that.proxyCardType);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List groups, String? currentGroupName, ProxyCardType proxyCardType)? $default,) {final _that = this; switch (_that) { case _ProxiesTabState() when $default != null: return $default(_that.groups,_that.currentGroupName,_that.proxyCardType);case _: return null; } } } /// @nodoc class _ProxiesTabState implements ProxiesTabState { const _ProxiesTabState({required List groups, required this.currentGroupName, required this.proxyCardType}): _groups = groups; final List _groups; @override List get groups { if (_groups is EqualUnmodifiableListView) return _groups; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_groups); } @override final String? currentGroupName; @override final ProxyCardType proxyCardType; /// Create a copy of ProxiesTabState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ProxiesTabStateCopyWith<_ProxiesTabState> get copyWith => __$ProxiesTabStateCopyWithImpl<_ProxiesTabState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProxiesTabState&&const DeepCollectionEquality().equals(other.groups, _groups)&&(identical(other.currentGroupName, currentGroupName) || other.currentGroupName == currentGroupName)&&(identical(other.proxyCardType, proxyCardType) || other.proxyCardType == proxyCardType)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_groups),currentGroupName,proxyCardType); } @override String toString() { return 'ProxiesTabState(groups: $groups, currentGroupName: $currentGroupName, proxyCardType: $proxyCardType)'; } } /// @nodoc abstract mixin class _$ProxiesTabStateCopyWith<$Res> implements $ProxiesTabStateCopyWith<$Res> { factory _$ProxiesTabStateCopyWith(_ProxiesTabState value, $Res Function(_ProxiesTabState) _then) = __$ProxiesTabStateCopyWithImpl; @override @useResult $Res call({ List groups, String? currentGroupName, ProxyCardType proxyCardType }); } /// @nodoc class __$ProxiesTabStateCopyWithImpl<$Res> implements _$ProxiesTabStateCopyWith<$Res> { __$ProxiesTabStateCopyWithImpl(this._self, this._then); final _ProxiesTabState _self; final $Res Function(_ProxiesTabState) _then; /// Create a copy of ProxiesTabState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? groups = null,Object? currentGroupName = freezed,Object? proxyCardType = null,}) { return _then(_ProxiesTabState( groups: null == groups ? _self._groups : groups // ignore: cast_nullable_to_non_nullable as List,currentGroupName: freezed == currentGroupName ? _self.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?,proxyCardType: null == proxyCardType ? _self.proxyCardType : proxyCardType // ignore: cast_nullable_to_non_nullable as ProxyCardType, )); } } /// @nodoc mixin _$ProxiesTabControllerState { List get groupNames; String? get currentGroupName; /// Create a copy of ProxiesTabControllerState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ProxiesTabControllerStateCopyWith get copyWith => _$ProxiesTabControllerStateCopyWithImpl(this as ProxiesTabControllerState, _$identity); @override bool operator ==(Object other) { final _this = this as ProxiesTabControllerState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ProxiesTabControllerState&&const DeepCollectionEquality().equals(other.groupNames, _this.groupNames)&&(identical(other.currentGroupName, _this.currentGroupName) || other.currentGroupName == _this.currentGroupName)); } @override int get hashCode { final _this = this as ProxiesTabControllerState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.groupNames),_this.currentGroupName); } @override String toString() { final _this = this as ProxiesTabControllerState; return 'ProxiesTabControllerState(groupNames: ${_this.groupNames}, currentGroupName: ${_this.currentGroupName})'; } } /// @nodoc abstract mixin class $ProxiesTabControllerStateCopyWith<$Res> { factory $ProxiesTabControllerStateCopyWith(ProxiesTabControllerState value, $Res Function(ProxiesTabControllerState) _then) = _$ProxiesTabControllerStateCopyWithImpl; @useResult $Res call({ List groupNames, String? currentGroupName }); } /// @nodoc class _$ProxiesTabControllerStateCopyWithImpl<$Res> implements $ProxiesTabControllerStateCopyWith<$Res> { _$ProxiesTabControllerStateCopyWithImpl(this._self, this._then); final ProxiesTabControllerState _self; final $Res Function(ProxiesTabControllerState) _then; /// Create a copy of ProxiesTabControllerState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? groupNames = null,Object? currentGroupName = freezed,}) { return _then(ProxiesTabControllerState( groupNames: null == groupNames ? _self.groupNames : groupNames // ignore: cast_nullable_to_non_nullable as List,currentGroupName: freezed == currentGroupName ? _self.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [ProxiesTabControllerState]. extension ProxiesTabControllerStatePatterns on ProxiesTabControllerState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ProxiesTabControllerState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ProxiesTabControllerState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ProxiesTabControllerState value) $default,){ final _that = this; switch (_that) { case _ProxiesTabControllerState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProxiesTabControllerState value)? $default,){ final _that = this; switch (_that) { case _ProxiesTabControllerState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List groupNames, String? currentGroupName)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ProxiesTabControllerState() when $default != null: return $default(_that.groupNames,_that.currentGroupName);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List groupNames, String? currentGroupName) $default,) {final _that = this; switch (_that) { case _ProxiesTabControllerState(): return $default(_that.groupNames,_that.currentGroupName);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List groupNames, String? currentGroupName)? $default,) {final _that = this; switch (_that) { case _ProxiesTabControllerState() when $default != null: return $default(_that.groupNames,_that.currentGroupName);case _: return null; } } } /// @nodoc class _ProxiesTabControllerState implements ProxiesTabControllerState { const _ProxiesTabControllerState({required List groupNames, required this.currentGroupName}): _groupNames = groupNames; final List _groupNames; @override List get groupNames { if (_groupNames is EqualUnmodifiableListView) return _groupNames; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_groupNames); } @override final String? currentGroupName; /// Create a copy of ProxiesTabControllerState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ProxiesTabControllerStateCopyWith<_ProxiesTabControllerState> get copyWith => __$ProxiesTabControllerStateCopyWithImpl<_ProxiesTabControllerState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProxiesTabControllerState&&const DeepCollectionEquality().equals(other.groupNames, _groupNames)&&(identical(other.currentGroupName, currentGroupName) || other.currentGroupName == currentGroupName)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_groupNames),currentGroupName); } @override String toString() { return 'ProxiesTabControllerState(groupNames: $groupNames, currentGroupName: $currentGroupName)'; } } /// @nodoc abstract mixin class _$ProxiesTabControllerStateCopyWith<$Res> implements $ProxiesTabControllerStateCopyWith<$Res> { factory _$ProxiesTabControllerStateCopyWith(_ProxiesTabControllerState value, $Res Function(_ProxiesTabControllerState) _then) = __$ProxiesTabControllerStateCopyWithImpl; @override @useResult $Res call({ List groupNames, String? currentGroupName }); } /// @nodoc class __$ProxiesTabControllerStateCopyWithImpl<$Res> implements _$ProxiesTabControllerStateCopyWith<$Res> { __$ProxiesTabControllerStateCopyWithImpl(this._self, this._then); final _ProxiesTabControllerState _self; final $Res Function(_ProxiesTabControllerState) _then; /// Create a copy of ProxiesTabControllerState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? groupNames = null,Object? currentGroupName = freezed,}) { return _then(_ProxiesTabControllerState( groupNames: null == groupNames ? _self._groupNames : groupNames // ignore: cast_nullable_to_non_nullable as List,currentGroupName: freezed == currentGroupName ? _self.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc mixin _$MoreToolsSelectorState { List get navigationItems; /// Create a copy of MoreToolsSelectorState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $MoreToolsSelectorStateCopyWith get copyWith => _$MoreToolsSelectorStateCopyWithImpl(this as MoreToolsSelectorState, _$identity); @override bool operator ==(Object other) { final _this = this as MoreToolsSelectorState; return identical(this, other) || (other.runtimeType == runtimeType&&other is MoreToolsSelectorState&&const DeepCollectionEquality().equals(other.navigationItems, _this.navigationItems)); } @override int get hashCode { final _this = this as MoreToolsSelectorState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.navigationItems)); } @override String toString() { final _this = this as MoreToolsSelectorState; return 'MoreToolsSelectorState(navigationItems: ${_this.navigationItems})'; } } /// @nodoc abstract mixin class $MoreToolsSelectorStateCopyWith<$Res> { factory $MoreToolsSelectorStateCopyWith(MoreToolsSelectorState value, $Res Function(MoreToolsSelectorState) _then) = _$MoreToolsSelectorStateCopyWithImpl; @useResult $Res call({ List navigationItems }); } /// @nodoc class _$MoreToolsSelectorStateCopyWithImpl<$Res> implements $MoreToolsSelectorStateCopyWith<$Res> { _$MoreToolsSelectorStateCopyWithImpl(this._self, this._then); final MoreToolsSelectorState _self; final $Res Function(MoreToolsSelectorState) _then; /// Create a copy of MoreToolsSelectorState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? navigationItems = null,}) { return _then(MoreToolsSelectorState( navigationItems: null == navigationItems ? _self.navigationItems : navigationItems // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [MoreToolsSelectorState]. extension MoreToolsSelectorStatePatterns on MoreToolsSelectorState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _MoreToolsSelectorState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _MoreToolsSelectorState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _MoreToolsSelectorState value) $default,){ final _that = this; switch (_that) { case _MoreToolsSelectorState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _MoreToolsSelectorState value)? $default,){ final _that = this; switch (_that) { case _MoreToolsSelectorState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List navigationItems)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _MoreToolsSelectorState() when $default != null: return $default(_that.navigationItems);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List navigationItems) $default,) {final _that = this; switch (_that) { case _MoreToolsSelectorState(): return $default(_that.navigationItems);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List navigationItems)? $default,) {final _that = this; switch (_that) { case _MoreToolsSelectorState() when $default != null: return $default(_that.navigationItems);case _: return null; } } } /// @nodoc class _MoreToolsSelectorState implements MoreToolsSelectorState { const _MoreToolsSelectorState({required List navigationItems}): _navigationItems = navigationItems; final List _navigationItems; @override List get navigationItems { if (_navigationItems is EqualUnmodifiableListView) return _navigationItems; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_navigationItems); } /// Create a copy of MoreToolsSelectorState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$MoreToolsSelectorStateCopyWith<_MoreToolsSelectorState> get copyWith => __$MoreToolsSelectorStateCopyWithImpl<_MoreToolsSelectorState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _MoreToolsSelectorState&&const DeepCollectionEquality().equals(other.navigationItems, _navigationItems)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_navigationItems)); } @override String toString() { return 'MoreToolsSelectorState(navigationItems: $navigationItems)'; } } /// @nodoc abstract mixin class _$MoreToolsSelectorStateCopyWith<$Res> implements $MoreToolsSelectorStateCopyWith<$Res> { factory _$MoreToolsSelectorStateCopyWith(_MoreToolsSelectorState value, $Res Function(_MoreToolsSelectorState) _then) = __$MoreToolsSelectorStateCopyWithImpl; @override @useResult $Res call({ List navigationItems }); } /// @nodoc class __$MoreToolsSelectorStateCopyWithImpl<$Res> implements _$MoreToolsSelectorStateCopyWith<$Res> { __$MoreToolsSelectorStateCopyWithImpl(this._self, this._then); final _MoreToolsSelectorState _self; final $Res Function(_MoreToolsSelectorState) _then; /// Create a copy of MoreToolsSelectorState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? navigationItems = null,}) { return _then(_MoreToolsSelectorState( navigationItems: null == navigationItems ? _self._navigationItems : navigationItems // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc mixin _$ProxyState { bool get isStart; bool get systemProxy; List get bassDomain; int get port; /// Create a copy of ProxyState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ProxyStateCopyWith get copyWith => _$ProxyStateCopyWithImpl(this as ProxyState, _$identity); @override bool operator ==(Object other) { final _this = this as ProxyState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ProxyState&&(identical(other.isStart, _this.isStart) || other.isStart == _this.isStart)&&(identical(other.systemProxy, _this.systemProxy) || other.systemProxy == _this.systemProxy)&&const DeepCollectionEquality().equals(other.bassDomain, _this.bassDomain)&&(identical(other.port, _this.port) || other.port == _this.port)); } @override int get hashCode { final _this = this as ProxyState; return Object.hash(runtimeType,_this.isStart,_this.systemProxy,const DeepCollectionEquality().hash(_this.bassDomain),_this.port); } @override String toString() { final _this = this as ProxyState; return 'ProxyState(isStart: ${_this.isStart}, systemProxy: ${_this.systemProxy}, bassDomain: ${_this.bassDomain}, port: ${_this.port})'; } } /// @nodoc abstract mixin class $ProxyStateCopyWith<$Res> { factory $ProxyStateCopyWith(ProxyState value, $Res Function(ProxyState) _then) = _$ProxyStateCopyWithImpl; @useResult $Res call({ bool isStart, bool systemProxy, List bassDomain, int port }); } /// @nodoc class _$ProxyStateCopyWithImpl<$Res> implements $ProxyStateCopyWith<$Res> { _$ProxyStateCopyWithImpl(this._self, this._then); final ProxyState _self; final $Res Function(ProxyState) _then; /// Create a copy of ProxyState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? isStart = null,Object? systemProxy = null,Object? bassDomain = null,Object? port = null,}) { return _then(ProxyState( isStart: null == isStart ? _self.isStart : isStart // ignore: cast_nullable_to_non_nullable as bool,systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,bassDomain: null == bassDomain ? _self.bassDomain : bassDomain // ignore: cast_nullable_to_non_nullable as List,port: null == port ? _self.port : port // ignore: cast_nullable_to_non_nullable as int, )); } } /// Adds pattern-matching-related methods to [ProxyState]. extension ProxyStatePatterns on ProxyState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ProxyState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ProxyState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ProxyState value) $default,){ final _that = this; switch (_that) { case _ProxyState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProxyState value)? $default,){ final _that = this; switch (_that) { case _ProxyState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( bool isStart, bool systemProxy, List bassDomain, int port)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ProxyState() when $default != null: return $default(_that.isStart,_that.systemProxy,_that.bassDomain,_that.port);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( bool isStart, bool systemProxy, List bassDomain, int port) $default,) {final _that = this; switch (_that) { case _ProxyState(): return $default(_that.isStart,_that.systemProxy,_that.bassDomain,_that.port);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( bool isStart, bool systemProxy, List bassDomain, int port)? $default,) {final _that = this; switch (_that) { case _ProxyState() when $default != null: return $default(_that.isStart,_that.systemProxy,_that.bassDomain,_that.port);case _: return null; } } } /// @nodoc class _ProxyState implements ProxyState { const _ProxyState({required this.isStart, required this.systemProxy, required List bassDomain, required this.port}): _bassDomain = bassDomain; @override final bool isStart; @override final bool systemProxy; final List _bassDomain; @override List get bassDomain { if (_bassDomain is EqualUnmodifiableListView) return _bassDomain; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_bassDomain); } @override final int port; /// Create a copy of ProxyState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ProxyStateCopyWith<_ProxyState> get copyWith => __$ProxyStateCopyWithImpl<_ProxyState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProxyState&&(identical(other.isStart, isStart) || other.isStart == isStart)&&(identical(other.systemProxy, systemProxy) || other.systemProxy == systemProxy)&&const DeepCollectionEquality().equals(other.bassDomain, _bassDomain)&&(identical(other.port, port) || other.port == port)); } @override int get hashCode { return Object.hash(runtimeType,isStart,systemProxy,const DeepCollectionEquality().hash(_bassDomain),port); } @override String toString() { return 'ProxyState(isStart: $isStart, systemProxy: $systemProxy, bassDomain: $bassDomain, port: $port)'; } } /// @nodoc abstract mixin class _$ProxyStateCopyWith<$Res> implements $ProxyStateCopyWith<$Res> { factory _$ProxyStateCopyWith(_ProxyState value, $Res Function(_ProxyState) _then) = __$ProxyStateCopyWithImpl; @override @useResult $Res call({ bool isStart, bool systemProxy, List bassDomain, int port }); } /// @nodoc class __$ProxyStateCopyWithImpl<$Res> implements _$ProxyStateCopyWith<$Res> { __$ProxyStateCopyWithImpl(this._self, this._then); final _ProxyState _self; final $Res Function(_ProxyState) _then; /// Create a copy of ProxyState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? isStart = null,Object? systemProxy = null,Object? bassDomain = null,Object? port = null,}) { return _then(_ProxyState( isStart: null == isStart ? _self.isStart : isStart // ignore: cast_nullable_to_non_nullable as bool,systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,bassDomain: null == bassDomain ? _self._bassDomain : bassDomain // ignore: cast_nullable_to_non_nullable as List,port: null == port ? _self.port : port // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc mixin _$ThemeColorsSelectorState { int? get primaryColor; List get primaryColors; ColorStyle get colorStyle; bool get isDefault; /// Create a copy of ThemeColorsSelectorState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ThemeColorsSelectorStateCopyWith get copyWith => _$ThemeColorsSelectorStateCopyWithImpl(this as ThemeColorsSelectorState, _$identity); @override bool operator ==(Object other) { final _this = this as ThemeColorsSelectorState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ThemeColorsSelectorState&&(identical(other.primaryColor, _this.primaryColor) || other.primaryColor == _this.primaryColor)&&const DeepCollectionEquality().equals(other.primaryColors, _this.primaryColors)&&(identical(other.colorStyle, _this.colorStyle) || other.colorStyle == _this.colorStyle)&&(identical(other.isDefault, _this.isDefault) || other.isDefault == _this.isDefault)); } @override int get hashCode { final _this = this as ThemeColorsSelectorState; return Object.hash(runtimeType,_this.primaryColor,const DeepCollectionEquality().hash(_this.primaryColors),_this.colorStyle,_this.isDefault); } @override String toString() { final _this = this as ThemeColorsSelectorState; return 'ThemeColorsSelectorState(primaryColor: ${_this.primaryColor}, primaryColors: ${_this.primaryColors}, colorStyle: ${_this.colorStyle}, isDefault: ${_this.isDefault})'; } } /// @nodoc abstract mixin class $ThemeColorsSelectorStateCopyWith<$Res> { factory $ThemeColorsSelectorStateCopyWith(ThemeColorsSelectorState value, $Res Function(ThemeColorsSelectorState) _then) = _$ThemeColorsSelectorStateCopyWithImpl; @useResult $Res call({ int? primaryColor, List primaryColors, ColorStyle colorStyle, bool isDefault }); } /// @nodoc class _$ThemeColorsSelectorStateCopyWithImpl<$Res> implements $ThemeColorsSelectorStateCopyWith<$Res> { _$ThemeColorsSelectorStateCopyWithImpl(this._self, this._then); final ThemeColorsSelectorState _self; final $Res Function(ThemeColorsSelectorState) _then; /// Create a copy of ThemeColorsSelectorState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? primaryColor = freezed,Object? primaryColors = null,Object? colorStyle = null,Object? isDefault = null,}) { return _then(ThemeColorsSelectorState( primaryColor: freezed == primaryColor ? _self.primaryColor : primaryColor // ignore: cast_nullable_to_non_nullable as int?,primaryColors: null == primaryColors ? _self.primaryColors : primaryColors // ignore: cast_nullable_to_non_nullable as List,colorStyle: null == colorStyle ? _self.colorStyle : colorStyle // ignore: cast_nullable_to_non_nullable as ColorStyle,isDefault: null == isDefault ? _self.isDefault : isDefault // ignore: cast_nullable_to_non_nullable as bool, )); } } /// Adds pattern-matching-related methods to [ThemeColorsSelectorState]. extension ThemeColorsSelectorStatePatterns on ThemeColorsSelectorState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ThemeColorsSelectorState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ThemeColorsSelectorState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ThemeColorsSelectorState value) $default,){ final _that = this; switch (_that) { case _ThemeColorsSelectorState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ThemeColorsSelectorState value)? $default,){ final _that = this; switch (_that) { case _ThemeColorsSelectorState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( int? primaryColor, List primaryColors, ColorStyle colorStyle, bool isDefault)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ThemeColorsSelectorState() when $default != null: return $default(_that.primaryColor,_that.primaryColors,_that.colorStyle,_that.isDefault);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( int? primaryColor, List primaryColors, ColorStyle colorStyle, bool isDefault) $default,) {final _that = this; switch (_that) { case _ThemeColorsSelectorState(): return $default(_that.primaryColor,_that.primaryColors,_that.colorStyle,_that.isDefault);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( int? primaryColor, List primaryColors, ColorStyle colorStyle, bool isDefault)? $default,) {final _that = this; switch (_that) { case _ThemeColorsSelectorState() when $default != null: return $default(_that.primaryColor,_that.primaryColors,_that.colorStyle,_that.isDefault);case _: return null; } } } /// @nodoc class _ThemeColorsSelectorState implements ThemeColorsSelectorState { const _ThemeColorsSelectorState({required this.primaryColor, required List primaryColors, required this.colorStyle, required this.isDefault}): _primaryColors = primaryColors; @override final int? primaryColor; final List _primaryColors; @override List get primaryColors { if (_primaryColors is EqualUnmodifiableListView) return _primaryColors; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_primaryColors); } @override final ColorStyle colorStyle; @override final bool isDefault; /// Create a copy of ThemeColorsSelectorState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ThemeColorsSelectorStateCopyWith<_ThemeColorsSelectorState> get copyWith => __$ThemeColorsSelectorStateCopyWithImpl<_ThemeColorsSelectorState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ThemeColorsSelectorState&&(identical(other.primaryColor, primaryColor) || other.primaryColor == primaryColor)&&const DeepCollectionEquality().equals(other.primaryColors, _primaryColors)&&(identical(other.colorStyle, colorStyle) || other.colorStyle == colorStyle)&&(identical(other.isDefault, isDefault) || other.isDefault == isDefault)); } @override int get hashCode { return Object.hash(runtimeType,primaryColor,const DeepCollectionEquality().hash(_primaryColors),colorStyle,isDefault); } @override String toString() { return 'ThemeColorsSelectorState(primaryColor: $primaryColor, primaryColors: $primaryColors, colorStyle: $colorStyle, isDefault: $isDefault)'; } } /// @nodoc abstract mixin class _$ThemeColorsSelectorStateCopyWith<$Res> implements $ThemeColorsSelectorStateCopyWith<$Res> { factory _$ThemeColorsSelectorStateCopyWith(_ThemeColorsSelectorState value, $Res Function(_ThemeColorsSelectorState) _then) = __$ThemeColorsSelectorStateCopyWithImpl; @override @useResult $Res call({ int? primaryColor, List primaryColors, ColorStyle colorStyle, bool isDefault }); } /// @nodoc class __$ThemeColorsSelectorStateCopyWithImpl<$Res> implements _$ThemeColorsSelectorStateCopyWith<$Res> { __$ThemeColorsSelectorStateCopyWithImpl(this._self, this._then); final _ThemeColorsSelectorState _self; final $Res Function(_ThemeColorsSelectorState) _then; /// Create a copy of ThemeColorsSelectorState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? primaryColor = freezed,Object? primaryColors = null,Object? colorStyle = null,Object? isDefault = null,}) { return _then(_ThemeColorsSelectorState( primaryColor: freezed == primaryColor ? _self.primaryColor : primaryColor // ignore: cast_nullable_to_non_nullable as int?,primaryColors: null == primaryColors ? _self._primaryColors : primaryColors // ignore: cast_nullable_to_non_nullable as List,colorStyle: null == colorStyle ? _self.colorStyle : colorStyle // ignore: cast_nullable_to_non_nullable as ColorStyle,isDefault: null == isDefault ? _self.isDefault : isDefault // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc mixin _$SystemProxySelectorState { bool get systemProxy; List get bypassDomain; /// Create a copy of SystemProxySelectorState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SystemProxySelectorStateCopyWith get copyWith => _$SystemProxySelectorStateCopyWithImpl(this as SystemProxySelectorState, _$identity); @override bool operator ==(Object other) { final _this = this as SystemProxySelectorState; return identical(this, other) || (other.runtimeType == runtimeType&&other is SystemProxySelectorState&&(identical(other.systemProxy, _this.systemProxy) || other.systemProxy == _this.systemProxy)&&const DeepCollectionEquality().equals(other.bypassDomain, _this.bypassDomain)); } @override int get hashCode { final _this = this as SystemProxySelectorState; return Object.hash(runtimeType,_this.systemProxy,const DeepCollectionEquality().hash(_this.bypassDomain)); } @override String toString() { final _this = this as SystemProxySelectorState; return 'SystemProxySelectorState(systemProxy: ${_this.systemProxy}, bypassDomain: ${_this.bypassDomain})'; } } /// @nodoc abstract mixin class $SystemProxySelectorStateCopyWith<$Res> { factory $SystemProxySelectorStateCopyWith(SystemProxySelectorState value, $Res Function(SystemProxySelectorState) _then) = _$SystemProxySelectorStateCopyWithImpl; @useResult $Res call({ bool systemProxy, List bypassDomain }); } /// @nodoc class _$SystemProxySelectorStateCopyWithImpl<$Res> implements $SystemProxySelectorStateCopyWith<$Res> { _$SystemProxySelectorStateCopyWithImpl(this._self, this._then); final SystemProxySelectorState _self; final $Res Function(SystemProxySelectorState) _then; /// Create a copy of SystemProxySelectorState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? systemProxy = null,Object? bypassDomain = null,}) { return _then(SystemProxySelectorState( systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,bypassDomain: null == bypassDomain ? _self.bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [SystemProxySelectorState]. extension SystemProxySelectorStatePatterns on SystemProxySelectorState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SystemProxySelectorState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SystemProxySelectorState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SystemProxySelectorState value) $default,){ final _that = this; switch (_that) { case _SystemProxySelectorState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SystemProxySelectorState value)? $default,){ final _that = this; switch (_that) { case _SystemProxySelectorState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( bool systemProxy, List bypassDomain)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SystemProxySelectorState() when $default != null: return $default(_that.systemProxy,_that.bypassDomain);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( bool systemProxy, List bypassDomain) $default,) {final _that = this; switch (_that) { case _SystemProxySelectorState(): return $default(_that.systemProxy,_that.bypassDomain);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( bool systemProxy, List bypassDomain)? $default,) {final _that = this; switch (_that) { case _SystemProxySelectorState() when $default != null: return $default(_that.systemProxy,_that.bypassDomain);case _: return null; } } } /// @nodoc class _SystemProxySelectorState implements SystemProxySelectorState { const _SystemProxySelectorState({required this.systemProxy, required List bypassDomain}): _bypassDomain = bypassDomain; @override final bool systemProxy; final List _bypassDomain; @override List get bypassDomain { if (_bypassDomain is EqualUnmodifiableListView) return _bypassDomain; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_bypassDomain); } /// Create a copy of SystemProxySelectorState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SystemProxySelectorStateCopyWith<_SystemProxySelectorState> get copyWith => __$SystemProxySelectorStateCopyWithImpl<_SystemProxySelectorState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SystemProxySelectorState&&(identical(other.systemProxy, systemProxy) || other.systemProxy == systemProxy)&&const DeepCollectionEquality().equals(other.bypassDomain, _bypassDomain)); } @override int get hashCode { return Object.hash(runtimeType,systemProxy,const DeepCollectionEquality().hash(_bypassDomain)); } @override String toString() { return 'SystemProxySelectorState(systemProxy: $systemProxy, bypassDomain: $bypassDomain)'; } } /// @nodoc abstract mixin class _$SystemProxySelectorStateCopyWith<$Res> implements $SystemProxySelectorStateCopyWith<$Res> { factory _$SystemProxySelectorStateCopyWith(_SystemProxySelectorState value, $Res Function(_SystemProxySelectorState) _then) = __$SystemProxySelectorStateCopyWithImpl; @override @useResult $Res call({ bool systemProxy, List bypassDomain }); } /// @nodoc class __$SystemProxySelectorStateCopyWithImpl<$Res> implements _$SystemProxySelectorStateCopyWith<$Res> { __$SystemProxySelectorStateCopyWithImpl(this._self, this._then); final _SystemProxySelectorState _self; final $Res Function(_SystemProxySelectorState) _then; /// Create a copy of SystemProxySelectorState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? systemProxy = null,Object? bypassDomain = null,}) { return _then(_SystemProxySelectorState( systemProxy: null == systemProxy ? _self.systemProxy : systemProxy // ignore: cast_nullable_to_non_nullable as bool,bypassDomain: null == bypassDomain ? _self._bypassDomain : bypassDomain // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc mixin _$CurrentProfileSelectorState { String get label; Map get selectedMap; /// Create a copy of CurrentProfileSelectorState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $CurrentProfileSelectorStateCopyWith get copyWith => _$CurrentProfileSelectorStateCopyWithImpl(this as CurrentProfileSelectorState, _$identity); @override bool operator ==(Object other) { final _this = this as CurrentProfileSelectorState; return identical(this, other) || (other.runtimeType == runtimeType&&other is CurrentProfileSelectorState&&(identical(other.label, _this.label) || other.label == _this.label)&&const DeepCollectionEquality().equals(other.selectedMap, _this.selectedMap)); } @override int get hashCode { final _this = this as CurrentProfileSelectorState; return Object.hash(runtimeType,_this.label,const DeepCollectionEquality().hash(_this.selectedMap)); } @override String toString() { final _this = this as CurrentProfileSelectorState; return 'CurrentProfileSelectorState(label: ${_this.label}, selectedMap: ${_this.selectedMap})'; } } /// @nodoc abstract mixin class $CurrentProfileSelectorStateCopyWith<$Res> { factory $CurrentProfileSelectorStateCopyWith(CurrentProfileSelectorState value, $Res Function(CurrentProfileSelectorState) _then) = _$CurrentProfileSelectorStateCopyWithImpl; @useResult $Res call({ String label, Map selectedMap }); } /// @nodoc class _$CurrentProfileSelectorStateCopyWithImpl<$Res> implements $CurrentProfileSelectorStateCopyWith<$Res> { _$CurrentProfileSelectorStateCopyWithImpl(this._self, this._then); final CurrentProfileSelectorState _self; final $Res Function(CurrentProfileSelectorState) _then; /// Create a copy of CurrentProfileSelectorState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? label = null,Object? selectedMap = null,}) { return _then(CurrentProfileSelectorState( label: null == label ? _self.label : label // ignore: cast_nullable_to_non_nullable as String,selectedMap: null == selectedMap ? _self.selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, )); } } /// Adds pattern-matching-related methods to [CurrentProfileSelectorState]. extension CurrentProfileSelectorStatePatterns on CurrentProfileSelectorState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _CurrentProfileSelectorState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _CurrentProfileSelectorState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _CurrentProfileSelectorState value) $default,){ final _that = this; switch (_that) { case _CurrentProfileSelectorState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _CurrentProfileSelectorState value)? $default,){ final _that = this; switch (_that) { case _CurrentProfileSelectorState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String label, Map selectedMap)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _CurrentProfileSelectorState() when $default != null: return $default(_that.label,_that.selectedMap);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String label, Map selectedMap) $default,) {final _that = this; switch (_that) { case _CurrentProfileSelectorState(): return $default(_that.label,_that.selectedMap);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String label, Map selectedMap)? $default,) {final _that = this; switch (_that) { case _CurrentProfileSelectorState() when $default != null: return $default(_that.label,_that.selectedMap);case _: return null; } } } /// @nodoc class _CurrentProfileSelectorState implements CurrentProfileSelectorState { const _CurrentProfileSelectorState({required this.label, required Map selectedMap}): _selectedMap = selectedMap; @override final String label; final Map _selectedMap; @override Map get selectedMap { if (_selectedMap is EqualUnmodifiableMapView) return _selectedMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_selectedMap); } /// Create a copy of CurrentProfileSelectorState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$CurrentProfileSelectorStateCopyWith<_CurrentProfileSelectorState> get copyWith => __$CurrentProfileSelectorStateCopyWithImpl<_CurrentProfileSelectorState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _CurrentProfileSelectorState&&(identical(other.label, label) || other.label == label)&&const DeepCollectionEquality().equals(other.selectedMap, _selectedMap)); } @override int get hashCode { return Object.hash(runtimeType,label,const DeepCollectionEquality().hash(_selectedMap)); } @override String toString() { return 'CurrentProfileSelectorState(label: $label, selectedMap: $selectedMap)'; } } /// @nodoc abstract mixin class _$CurrentProfileSelectorStateCopyWith<$Res> implements $CurrentProfileSelectorStateCopyWith<$Res> { factory _$CurrentProfileSelectorStateCopyWith(_CurrentProfileSelectorState value, $Res Function(_CurrentProfileSelectorState) _then) = __$CurrentProfileSelectorStateCopyWithImpl; @override @useResult $Res call({ String label, Map selectedMap }); } /// @nodoc class __$CurrentProfileSelectorStateCopyWithImpl<$Res> implements _$CurrentProfileSelectorStateCopyWith<$Res> { __$CurrentProfileSelectorStateCopyWithImpl(this._self, this._then); final _CurrentProfileSelectorState _self; final $Res Function(_CurrentProfileSelectorState) _then; /// Create a copy of CurrentProfileSelectorState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? label = null,Object? selectedMap = null,}) { return _then(_CurrentProfileSelectorState( label: null == label ? _self.label : label // ignore: cast_nullable_to_non_nullable as String,selectedMap: null == selectedMap ? _self._selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc mixin _$DashboardState { List get dashboardWidgets; /// Create a copy of DashboardState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $DashboardStateCopyWith get copyWith => _$DashboardStateCopyWithImpl(this as DashboardState, _$identity); @override bool operator ==(Object other) { final _this = this as DashboardState; return identical(this, other) || (other.runtimeType == runtimeType&&other is DashboardState&&const DeepCollectionEquality().equals(other.dashboardWidgets, _this.dashboardWidgets)); } @override int get hashCode { final _this = this as DashboardState; return Object.hash(runtimeType,const DeepCollectionEquality().hash(_this.dashboardWidgets)); } @override String toString() { final _this = this as DashboardState; return 'DashboardState(dashboardWidgets: ${_this.dashboardWidgets})'; } } /// @nodoc abstract mixin class $DashboardStateCopyWith<$Res> { factory $DashboardStateCopyWith(DashboardState value, $Res Function(DashboardState) _then) = _$DashboardStateCopyWithImpl; @useResult $Res call({ List dashboardWidgets }); } /// @nodoc class _$DashboardStateCopyWithImpl<$Res> implements $DashboardStateCopyWith<$Res> { _$DashboardStateCopyWithImpl(this._self, this._then); final DashboardState _self; final $Res Function(DashboardState) _then; /// Create a copy of DashboardState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? dashboardWidgets = null,}) { return _then(DashboardState( dashboardWidgets: null == dashboardWidgets ? _self.dashboardWidgets : dashboardWidgets // ignore: cast_nullable_to_non_nullable as List, )); } } /// Adds pattern-matching-related methods to [DashboardState]. extension DashboardStatePatterns on DashboardState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _DashboardState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _DashboardState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _DashboardState value) $default,){ final _that = this; switch (_that) { case _DashboardState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _DashboardState value)? $default,){ final _that = this; switch (_that) { case _DashboardState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( List dashboardWidgets)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _DashboardState() when $default != null: return $default(_that.dashboardWidgets);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( List dashboardWidgets) $default,) {final _that = this; switch (_that) { case _DashboardState(): return $default(_that.dashboardWidgets);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( List dashboardWidgets)? $default,) {final _that = this; switch (_that) { case _DashboardState() when $default != null: return $default(_that.dashboardWidgets);case _: return null; } } } /// @nodoc class _DashboardState implements DashboardState { const _DashboardState({required List dashboardWidgets}): _dashboardWidgets = dashboardWidgets; final List _dashboardWidgets; @override List get dashboardWidgets { if (_dashboardWidgets is EqualUnmodifiableListView) return _dashboardWidgets; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_dashboardWidgets); } /// Create a copy of DashboardState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$DashboardStateCopyWith<_DashboardState> get copyWith => __$DashboardStateCopyWithImpl<_DashboardState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _DashboardState&&const DeepCollectionEquality().equals(other.dashboardWidgets, _dashboardWidgets)); } @override int get hashCode { return Object.hash(runtimeType,const DeepCollectionEquality().hash(_dashboardWidgets)); } @override String toString() { return 'DashboardState(dashboardWidgets: $dashboardWidgets)'; } } /// @nodoc abstract mixin class _$DashboardStateCopyWith<$Res> implements $DashboardStateCopyWith<$Res> { factory _$DashboardStateCopyWith(_DashboardState value, $Res Function(_DashboardState) _then) = __$DashboardStateCopyWithImpl; @override @useResult $Res call({ List dashboardWidgets }); } /// @nodoc class __$DashboardStateCopyWithImpl<$Res> implements _$DashboardStateCopyWith<$Res> { __$DashboardStateCopyWithImpl(this._self, this._then); final _DashboardState _self; final $Res Function(_DashboardState) _then; /// Create a copy of DashboardState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? dashboardWidgets = null,}) { return _then(_DashboardState( dashboardWidgets: null == dashboardWidgets ? _self._dashboardWidgets : dashboardWidgets // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc mixin _$SelectedProxyState { String get proxyName; bool get group; String? get testUrl; /// Create a copy of SelectedProxyState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SelectedProxyStateCopyWith get copyWith => _$SelectedProxyStateCopyWithImpl(this as SelectedProxyState, _$identity); @override bool operator ==(Object other) { final _this = this as SelectedProxyState; return identical(this, other) || (other.runtimeType == runtimeType&&other is SelectedProxyState&&(identical(other.proxyName, _this.proxyName) || other.proxyName == _this.proxyName)&&(identical(other.group, _this.group) || other.group == _this.group)&&(identical(other.testUrl, _this.testUrl) || other.testUrl == _this.testUrl)); } @override int get hashCode { final _this = this as SelectedProxyState; return Object.hash(runtimeType,_this.proxyName,_this.group,_this.testUrl); } @override String toString() { final _this = this as SelectedProxyState; return 'SelectedProxyState(proxyName: ${_this.proxyName}, group: ${_this.group}, testUrl: ${_this.testUrl})'; } } /// @nodoc abstract mixin class $SelectedProxyStateCopyWith<$Res> { factory $SelectedProxyStateCopyWith(SelectedProxyState value, $Res Function(SelectedProxyState) _then) = _$SelectedProxyStateCopyWithImpl; @useResult $Res call({ String proxyName, bool group, String? testUrl }); } /// @nodoc class _$SelectedProxyStateCopyWithImpl<$Res> implements $SelectedProxyStateCopyWith<$Res> { _$SelectedProxyStateCopyWithImpl(this._self, this._then); final SelectedProxyState _self; final $Res Function(SelectedProxyState) _then; /// Create a copy of SelectedProxyState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? proxyName = null,Object? group = null,Object? testUrl = freezed,}) { return _then(SelectedProxyState( proxyName: null == proxyName ? _self.proxyName : proxyName // ignore: cast_nullable_to_non_nullable as String,group: null == group ? _self.group : group // ignore: cast_nullable_to_non_nullable as bool,testUrl: freezed == testUrl ? _self.testUrl : testUrl // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [SelectedProxyState]. extension SelectedProxyStatePatterns on SelectedProxyState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SelectedProxyState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SelectedProxyState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SelectedProxyState value) $default,){ final _that = this; switch (_that) { case _SelectedProxyState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SelectedProxyState value)? $default,){ final _that = this; switch (_that) { case _SelectedProxyState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String proxyName, bool group, String? testUrl)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SelectedProxyState() when $default != null: return $default(_that.proxyName,_that.group,_that.testUrl);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String proxyName, bool group, String? testUrl) $default,) {final _that = this; switch (_that) { case _SelectedProxyState(): return $default(_that.proxyName,_that.group,_that.testUrl);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String proxyName, bool group, String? testUrl)? $default,) {final _that = this; switch (_that) { case _SelectedProxyState() when $default != null: return $default(_that.proxyName,_that.group,_that.testUrl);case _: return null; } } } /// @nodoc class _SelectedProxyState implements SelectedProxyState { const _SelectedProxyState({required this.proxyName, this.group = false, this.testUrl}); @override final String proxyName; @override@JsonKey() final bool group; @override final String? testUrl; /// Create a copy of SelectedProxyState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SelectedProxyStateCopyWith<_SelectedProxyState> get copyWith => __$SelectedProxyStateCopyWithImpl<_SelectedProxyState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SelectedProxyState&&(identical(other.proxyName, proxyName) || other.proxyName == proxyName)&&(identical(other.group, group) || other.group == group)&&(identical(other.testUrl, testUrl) || other.testUrl == testUrl)); } @override int get hashCode { return Object.hash(runtimeType,proxyName,group,testUrl); } @override String toString() { return 'SelectedProxyState(proxyName: $proxyName, group: $group, testUrl: $testUrl)'; } } /// @nodoc abstract mixin class _$SelectedProxyStateCopyWith<$Res> implements $SelectedProxyStateCopyWith<$Res> { factory _$SelectedProxyStateCopyWith(_SelectedProxyState value, $Res Function(_SelectedProxyState) _then) = __$SelectedProxyStateCopyWithImpl; @override @useResult $Res call({ String proxyName, bool group, String? testUrl }); } /// @nodoc class __$SelectedProxyStateCopyWithImpl<$Res> implements _$SelectedProxyStateCopyWith<$Res> { __$SelectedProxyStateCopyWithImpl(this._self, this._then); final _SelectedProxyState _self; final $Res Function(_SelectedProxyState) _then; /// Create a copy of SelectedProxyState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? proxyName = null,Object? group = null,Object? testUrl = freezed,}) { return _then(_SelectedProxyState( proxyName: null == proxyName ? _self.proxyName : proxyName // ignore: cast_nullable_to_non_nullable as String,group: null == group ? _self.group : group // ignore: cast_nullable_to_non_nullable as bool,testUrl: freezed == testUrl ? _self.testUrl : testUrl // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc mixin _$SharedState { SetupParams? get setupParams; VpnOptions? get vpnOptions; String get stopTip; String get startTip; String get localNetworkTip; String get currentProfileName; String get stopText; bool get onlyStatisticsProxy; bool get showStopAction; /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SharedStateCopyWith get copyWith => _$SharedStateCopyWithImpl(this as SharedState, _$identity); /// Serializes this SharedState to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as SharedState; return identical(this, other) || (other.runtimeType == runtimeType&&other is SharedState&&(identical(other.setupParams, _this.setupParams) || other.setupParams == _this.setupParams)&&(identical(other.vpnOptions, _this.vpnOptions) || other.vpnOptions == _this.vpnOptions)&&(identical(other.stopTip, _this.stopTip) || other.stopTip == _this.stopTip)&&(identical(other.startTip, _this.startTip) || other.startTip == _this.startTip)&&(identical(other.localNetworkTip, _this.localNetworkTip) || other.localNetworkTip == _this.localNetworkTip)&&(identical(other.currentProfileName, _this.currentProfileName) || other.currentProfileName == _this.currentProfileName)&&(identical(other.stopText, _this.stopText) || other.stopText == _this.stopText)&&(identical(other.onlyStatisticsProxy, _this.onlyStatisticsProxy) || other.onlyStatisticsProxy == _this.onlyStatisticsProxy)&&(identical(other.showStopAction, _this.showStopAction) || other.showStopAction == _this.showStopAction)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as SharedState; return Object.hash(runtimeType,_this.setupParams,_this.vpnOptions,_this.stopTip,_this.startTip,_this.localNetworkTip,_this.currentProfileName,_this.stopText,_this.onlyStatisticsProxy,_this.showStopAction); } @override String toString() { final _this = this as SharedState; return 'SharedState(setupParams: ${_this.setupParams}, vpnOptions: ${_this.vpnOptions}, stopTip: ${_this.stopTip}, startTip: ${_this.startTip}, localNetworkTip: ${_this.localNetworkTip}, currentProfileName: ${_this.currentProfileName}, stopText: ${_this.stopText}, onlyStatisticsProxy: ${_this.onlyStatisticsProxy}, showStopAction: ${_this.showStopAction})'; } } /// @nodoc abstract mixin class $SharedStateCopyWith<$Res> { factory $SharedStateCopyWith(SharedState value, $Res Function(SharedState) _then) = _$SharedStateCopyWithImpl; @useResult $Res call({ SetupParams? setupParams, VpnOptions? vpnOptions, String stopTip, String startTip, String localNetworkTip, String currentProfileName, String stopText, bool onlyStatisticsProxy, bool showStopAction }); $SetupParamsCopyWith<$Res>? get setupParams;$VpnOptionsCopyWith<$Res>? get vpnOptions; } /// @nodoc class _$SharedStateCopyWithImpl<$Res> implements $SharedStateCopyWith<$Res> { _$SharedStateCopyWithImpl(this._self, this._then); final SharedState _self; final $Res Function(SharedState) _then; /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? setupParams = freezed,Object? vpnOptions = freezed,Object? stopTip = null,Object? startTip = null,Object? localNetworkTip = null,Object? currentProfileName = null,Object? stopText = null,Object? onlyStatisticsProxy = null,Object? showStopAction = null,}) { return _then(SharedState( setupParams: freezed == setupParams ? _self.setupParams : setupParams // ignore: cast_nullable_to_non_nullable as SetupParams?,vpnOptions: freezed == vpnOptions ? _self.vpnOptions : vpnOptions // ignore: cast_nullable_to_non_nullable as VpnOptions?,stopTip: null == stopTip ? _self.stopTip : stopTip // ignore: cast_nullable_to_non_nullable as String,startTip: null == startTip ? _self.startTip : startTip // ignore: cast_nullable_to_non_nullable as String,localNetworkTip: null == localNetworkTip ? _self.localNetworkTip : localNetworkTip // ignore: cast_nullable_to_non_nullable as String,currentProfileName: null == currentProfileName ? _self.currentProfileName : currentProfileName // ignore: cast_nullable_to_non_nullable as String,stopText: null == stopText ? _self.stopText : stopText // ignore: cast_nullable_to_non_nullable as String,onlyStatisticsProxy: null == onlyStatisticsProxy ? _self.onlyStatisticsProxy : onlyStatisticsProxy // ignore: cast_nullable_to_non_nullable as bool,showStopAction: null == showStopAction ? _self.showStopAction : showStopAction // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SetupParamsCopyWith<$Res>? get setupParams { if (_self.setupParams == null) { return null; } return $SetupParamsCopyWith<$Res>(_self.setupParams!, (value) { return _then(_self.copyWith(setupParams: value)); }); }/// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $VpnOptionsCopyWith<$Res>? get vpnOptions { if (_self.vpnOptions == null) { return null; } return $VpnOptionsCopyWith<$Res>(_self.vpnOptions!, (value) { return _then(_self.copyWith(vpnOptions: value)); }); } } /// Adds pattern-matching-related methods to [SharedState]. extension SharedStatePatterns on SharedState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SharedState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SharedState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SharedState value) $default,){ final _that = this; switch (_that) { case _SharedState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SharedState value)? $default,){ final _that = this; switch (_that) { case _SharedState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( SetupParams? setupParams, VpnOptions? vpnOptions, String stopTip, String startTip, String localNetworkTip, String currentProfileName, String stopText, bool onlyStatisticsProxy, bool showStopAction)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SharedState() when $default != null: return $default(_that.setupParams,_that.vpnOptions,_that.stopTip,_that.startTip,_that.localNetworkTip,_that.currentProfileName,_that.stopText,_that.onlyStatisticsProxy,_that.showStopAction);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( SetupParams? setupParams, VpnOptions? vpnOptions, String stopTip, String startTip, String localNetworkTip, String currentProfileName, String stopText, bool onlyStatisticsProxy, bool showStopAction) $default,) {final _that = this; switch (_that) { case _SharedState(): return $default(_that.setupParams,_that.vpnOptions,_that.stopTip,_that.startTip,_that.localNetworkTip,_that.currentProfileName,_that.stopText,_that.onlyStatisticsProxy,_that.showStopAction);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( SetupParams? setupParams, VpnOptions? vpnOptions, String stopTip, String startTip, String localNetworkTip, String currentProfileName, String stopText, bool onlyStatisticsProxy, bool showStopAction)? $default,) {final _that = this; switch (_that) { case _SharedState() when $default != null: return $default(_that.setupParams,_that.vpnOptions,_that.stopTip,_that.startTip,_that.localNetworkTip,_that.currentProfileName,_that.stopText,_that.onlyStatisticsProxy,_that.showStopAction);case _: return null; } } } /// @nodoc @JsonSerializable() class _SharedState implements SharedState { const _SharedState({this.setupParams, this.vpnOptions, required this.stopTip, required this.startTip, required this.localNetworkTip, required this.currentProfileName, required this.stopText, required this.onlyStatisticsProxy, this.showStopAction = true}); factory _SharedState.fromJson(Map json) => _$SharedStateFromJson(json); @override final SetupParams? setupParams; @override final VpnOptions? vpnOptions; @override final String stopTip; @override final String startTip; @override final String localNetworkTip; @override final String currentProfileName; @override final String stopText; @override final bool onlyStatisticsProxy; @override@JsonKey() final bool showStopAction; /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SharedStateCopyWith<_SharedState> get copyWith => __$SharedStateCopyWithImpl<_SharedState>(this, _$identity); @override Map toJson() { return _$SharedStateToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SharedState&&(identical(other.setupParams, setupParams) || other.setupParams == setupParams)&&(identical(other.vpnOptions, vpnOptions) || other.vpnOptions == vpnOptions)&&(identical(other.stopTip, stopTip) || other.stopTip == stopTip)&&(identical(other.startTip, startTip) || other.startTip == startTip)&&(identical(other.localNetworkTip, localNetworkTip) || other.localNetworkTip == localNetworkTip)&&(identical(other.currentProfileName, currentProfileName) || other.currentProfileName == currentProfileName)&&(identical(other.stopText, stopText) || other.stopText == stopText)&&(identical(other.onlyStatisticsProxy, onlyStatisticsProxy) || other.onlyStatisticsProxy == onlyStatisticsProxy)&&(identical(other.showStopAction, showStopAction) || other.showStopAction == showStopAction)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,setupParams,vpnOptions,stopTip,startTip,localNetworkTip,currentProfileName,stopText,onlyStatisticsProxy,showStopAction); } @override String toString() { return 'SharedState(setupParams: $setupParams, vpnOptions: $vpnOptions, stopTip: $stopTip, startTip: $startTip, localNetworkTip: $localNetworkTip, currentProfileName: $currentProfileName, stopText: $stopText, onlyStatisticsProxy: $onlyStatisticsProxy, showStopAction: $showStopAction)'; } } /// @nodoc abstract mixin class _$SharedStateCopyWith<$Res> implements $SharedStateCopyWith<$Res> { factory _$SharedStateCopyWith(_SharedState value, $Res Function(_SharedState) _then) = __$SharedStateCopyWithImpl; @override @useResult $Res call({ SetupParams? setupParams, VpnOptions? vpnOptions, String stopTip, String startTip, String localNetworkTip, String currentProfileName, String stopText, bool onlyStatisticsProxy, bool showStopAction }); @override $SetupParamsCopyWith<$Res>? get setupParams;@override $VpnOptionsCopyWith<$Res>? get vpnOptions; } /// @nodoc class __$SharedStateCopyWithImpl<$Res> implements _$SharedStateCopyWith<$Res> { __$SharedStateCopyWithImpl(this._self, this._then); final _SharedState _self; final $Res Function(_SharedState) _then; /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? setupParams = freezed,Object? vpnOptions = freezed,Object? stopTip = null,Object? startTip = null,Object? localNetworkTip = null,Object? currentProfileName = null,Object? stopText = null,Object? onlyStatisticsProxy = null,Object? showStopAction = null,}) { return _then(_SharedState( setupParams: freezed == setupParams ? _self.setupParams : setupParams // ignore: cast_nullable_to_non_nullable as SetupParams?,vpnOptions: freezed == vpnOptions ? _self.vpnOptions : vpnOptions // ignore: cast_nullable_to_non_nullable as VpnOptions?,stopTip: null == stopTip ? _self.stopTip : stopTip // ignore: cast_nullable_to_non_nullable as String,startTip: null == startTip ? _self.startTip : startTip // ignore: cast_nullable_to_non_nullable as String,localNetworkTip: null == localNetworkTip ? _self.localNetworkTip : localNetworkTip // ignore: cast_nullable_to_non_nullable as String,currentProfileName: null == currentProfileName ? _self.currentProfileName : currentProfileName // ignore: cast_nullable_to_non_nullable as String,stopText: null == stopText ? _self.stopText : stopText // ignore: cast_nullable_to_non_nullable as String,onlyStatisticsProxy: null == onlyStatisticsProxy ? _self.onlyStatisticsProxy : onlyStatisticsProxy // ignore: cast_nullable_to_non_nullable as bool,showStopAction: null == showStopAction ? _self.showStopAction : showStopAction // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $SetupParamsCopyWith<$Res>? get setupParams { if (_self.setupParams == null) { return null; } return $SetupParamsCopyWith<$Res>(_self.setupParams!, (value) { return _then(_self.copyWith(setupParams: value)); }); }/// Create a copy of SharedState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $VpnOptionsCopyWith<$Res>? get vpnOptions { if (_self.vpnOptions == null) { return null; } return $VpnOptionsCopyWith<$Res>(_self.vpnOptions!, (value) { return _then(_self.copyWith(vpnOptions: value)); }); } } /// @nodoc mixin _$ComputeGroupsState { ProxiesData get proxiesData; ProxiesSortType get sortType; DelayMap get delayMap; Map get selectedMap; String get defaultTestUrl; /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ComputeGroupsStateCopyWith get copyWith => _$ComputeGroupsStateCopyWithImpl(this as ComputeGroupsState, _$identity); @override bool operator ==(Object other) { final _this = this as ComputeGroupsState; return identical(this, other) || (other.runtimeType == runtimeType&&other is ComputeGroupsState&&(identical(other.proxiesData, _this.proxiesData) || other.proxiesData == _this.proxiesData)&&(identical(other.sortType, _this.sortType) || other.sortType == _this.sortType)&&const DeepCollectionEquality().equals(other.delayMap, _this.delayMap)&&const DeepCollectionEquality().equals(other.selectedMap, _this.selectedMap)&&(identical(other.defaultTestUrl, _this.defaultTestUrl) || other.defaultTestUrl == _this.defaultTestUrl)); } @override int get hashCode { final _this = this as ComputeGroupsState; return Object.hash(runtimeType,_this.proxiesData,_this.sortType,const DeepCollectionEquality().hash(_this.delayMap),const DeepCollectionEquality().hash(_this.selectedMap),_this.defaultTestUrl); } @override String toString() { final _this = this as ComputeGroupsState; return 'ComputeGroupsState(proxiesData: ${_this.proxiesData}, sortType: ${_this.sortType}, delayMap: ${_this.delayMap}, selectedMap: ${_this.selectedMap}, defaultTestUrl: ${_this.defaultTestUrl})'; } } /// @nodoc abstract mixin class $ComputeGroupsStateCopyWith<$Res> { factory $ComputeGroupsStateCopyWith(ComputeGroupsState value, $Res Function(ComputeGroupsState) _then) = _$ComputeGroupsStateCopyWithImpl; @useResult $Res call({ ProxiesData proxiesData, ProxiesSortType sortType, DelayMap delayMap, Map selectedMap, String defaultTestUrl }); $ProxiesDataCopyWith<$Res> get proxiesData; } /// @nodoc class _$ComputeGroupsStateCopyWithImpl<$Res> implements $ComputeGroupsStateCopyWith<$Res> { _$ComputeGroupsStateCopyWithImpl(this._self, this._then); final ComputeGroupsState _self; final $Res Function(ComputeGroupsState) _then; /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? proxiesData = null,Object? sortType = null,Object? delayMap = null,Object? selectedMap = null,Object? defaultTestUrl = null,}) { return _then(ComputeGroupsState( proxiesData: null == proxiesData ? _self.proxiesData : proxiesData // ignore: cast_nullable_to_non_nullable as ProxiesData,sortType: null == sortType ? _self.sortType : sortType // ignore: cast_nullable_to_non_nullable as ProxiesSortType,delayMap: null == delayMap ? _self.delayMap : delayMap // ignore: cast_nullable_to_non_nullable as DelayMap,selectedMap: null == selectedMap ? _self.selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map,defaultTestUrl: null == defaultTestUrl ? _self.defaultTestUrl : defaultTestUrl // ignore: cast_nullable_to_non_nullable as String, )); } /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ProxiesDataCopyWith<$Res> get proxiesData { return $ProxiesDataCopyWith<$Res>(_self.proxiesData, (value) { return _then(_self.copyWith(proxiesData: value)); }); } } /// Adds pattern-matching-related methods to [ComputeGroupsState]. extension ComputeGroupsStatePatterns on ComputeGroupsState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _ComputeGroupsState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _ComputeGroupsState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _ComputeGroupsState value) $default,){ final _that = this; switch (_that) { case _ComputeGroupsState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _ComputeGroupsState value)? $default,){ final _that = this; switch (_that) { case _ComputeGroupsState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( ProxiesData proxiesData, ProxiesSortType sortType, DelayMap delayMap, Map selectedMap, String defaultTestUrl)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _ComputeGroupsState() when $default != null: return $default(_that.proxiesData,_that.sortType,_that.delayMap,_that.selectedMap,_that.defaultTestUrl);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( ProxiesData proxiesData, ProxiesSortType sortType, DelayMap delayMap, Map selectedMap, String defaultTestUrl) $default,) {final _that = this; switch (_that) { case _ComputeGroupsState(): return $default(_that.proxiesData,_that.sortType,_that.delayMap,_that.selectedMap,_that.defaultTestUrl);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( ProxiesData proxiesData, ProxiesSortType sortType, DelayMap delayMap, Map selectedMap, String defaultTestUrl)? $default,) {final _that = this; switch (_that) { case _ComputeGroupsState() when $default != null: return $default(_that.proxiesData,_that.sortType,_that.delayMap,_that.selectedMap,_that.defaultTestUrl);case _: return null; } } } /// @nodoc class _ComputeGroupsState implements ComputeGroupsState { const _ComputeGroupsState({required this.proxiesData, required this.sortType, required DelayMap delayMap, required Map selectedMap, required this.defaultTestUrl}): _delayMap = delayMap,_selectedMap = selectedMap; @override final ProxiesData proxiesData; @override final ProxiesSortType sortType; final DelayMap _delayMap; @override DelayMap get delayMap { if (_delayMap is EqualUnmodifiableMapView) return _delayMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_delayMap); } final Map _selectedMap; @override Map get selectedMap { if (_selectedMap is EqualUnmodifiableMapView) return _selectedMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_selectedMap); } @override final String defaultTestUrl; /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ComputeGroupsStateCopyWith<_ComputeGroupsState> get copyWith => __$ComputeGroupsStateCopyWithImpl<_ComputeGroupsState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _ComputeGroupsState&&(identical(other.proxiesData, proxiesData) || other.proxiesData == proxiesData)&&(identical(other.sortType, sortType) || other.sortType == sortType)&&const DeepCollectionEquality().equals(other.delayMap, _delayMap)&&const DeepCollectionEquality().equals(other.selectedMap, _selectedMap)&&(identical(other.defaultTestUrl, defaultTestUrl) || other.defaultTestUrl == defaultTestUrl)); } @override int get hashCode { return Object.hash(runtimeType,proxiesData,sortType,const DeepCollectionEquality().hash(_delayMap),const DeepCollectionEquality().hash(_selectedMap),defaultTestUrl); } @override String toString() { return 'ComputeGroupsState(proxiesData: $proxiesData, sortType: $sortType, delayMap: $delayMap, selectedMap: $selectedMap, defaultTestUrl: $defaultTestUrl)'; } } /// @nodoc abstract mixin class _$ComputeGroupsStateCopyWith<$Res> implements $ComputeGroupsStateCopyWith<$Res> { factory _$ComputeGroupsStateCopyWith(_ComputeGroupsState value, $Res Function(_ComputeGroupsState) _then) = __$ComputeGroupsStateCopyWithImpl; @override @useResult $Res call({ ProxiesData proxiesData, ProxiesSortType sortType, DelayMap delayMap, Map selectedMap, String defaultTestUrl }); @override $ProxiesDataCopyWith<$Res> get proxiesData; } /// @nodoc class __$ComputeGroupsStateCopyWithImpl<$Res> implements _$ComputeGroupsStateCopyWith<$Res> { __$ComputeGroupsStateCopyWithImpl(this._self, this._then); final _ComputeGroupsState _self; final $Res Function(_ComputeGroupsState) _then; /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? proxiesData = null,Object? sortType = null,Object? delayMap = null,Object? selectedMap = null,Object? defaultTestUrl = null,}) { return _then(_ComputeGroupsState( proxiesData: null == proxiesData ? _self.proxiesData : proxiesData // ignore: cast_nullable_to_non_nullable as ProxiesData,sortType: null == sortType ? _self.sortType : sortType // ignore: cast_nullable_to_non_nullable as ProxiesSortType,delayMap: null == delayMap ? _self._delayMap : delayMap // ignore: cast_nullable_to_non_nullable as DelayMap,selectedMap: null == selectedMap ? _self._selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map,defaultTestUrl: null == defaultTestUrl ? _self.defaultTestUrl : defaultTestUrl // ignore: cast_nullable_to_non_nullable as String, )); } /// Create a copy of ComputeGroupsState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ProxiesDataCopyWith<$Res> get proxiesData { return $ProxiesDataCopyWith<$Res>(_self.proxiesData, (value) { return _then(_self.copyWith(proxiesData: value)); }); } } /// @nodoc mixin _$MakeRealProfileState { String get profilesPath; int get profileId; Map get rawConfig; PatchClashConfig get realPatchConfig; ProfileOverrides get overrides; bool get bypassPrivateRoute;/// Set for a subscription, whose own DNS values an emptied entry replaces. bool get keepEmptyDnsOverrides; bool get appendSystemDns; List get proxyGroups; List get rules; List get addedRules; String get defaultUA; List get authentication; Map get injectedProxyProviders; Map get injectedRuleProviders; String? get matchTarget; bool get safeMode; /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $MakeRealProfileStateCopyWith get copyWith => _$MakeRealProfileStateCopyWithImpl(this as MakeRealProfileState, _$identity); @override bool operator ==(Object other) { final _this = this as MakeRealProfileState; return identical(this, other) || (other.runtimeType == runtimeType&&other is MakeRealProfileState&&(identical(other.profilesPath, _this.profilesPath) || other.profilesPath == _this.profilesPath)&&(identical(other.profileId, _this.profileId) || other.profileId == _this.profileId)&&const DeepCollectionEquality().equals(other.rawConfig, _this.rawConfig)&&(identical(other.realPatchConfig, _this.realPatchConfig) || other.realPatchConfig == _this.realPatchConfig)&&(identical(other.overrides, _this.overrides) || other.overrides == _this.overrides)&&(identical(other.bypassPrivateRoute, _this.bypassPrivateRoute) || other.bypassPrivateRoute == _this.bypassPrivateRoute)&&(identical(other.keepEmptyDnsOverrides, _this.keepEmptyDnsOverrides) || other.keepEmptyDnsOverrides == _this.keepEmptyDnsOverrides)&&(identical(other.appendSystemDns, _this.appendSystemDns) || other.appendSystemDns == _this.appendSystemDns)&&const DeepCollectionEquality().equals(other.proxyGroups, _this.proxyGroups)&&const DeepCollectionEquality().equals(other.rules, _this.rules)&&const DeepCollectionEquality().equals(other.addedRules, _this.addedRules)&&(identical(other.defaultUA, _this.defaultUA) || other.defaultUA == _this.defaultUA)&&const DeepCollectionEquality().equals(other.authentication, _this.authentication)&&const DeepCollectionEquality().equals(other.injectedProxyProviders, _this.injectedProxyProviders)&&const DeepCollectionEquality().equals(other.injectedRuleProviders, _this.injectedRuleProviders)&&(identical(other.matchTarget, _this.matchTarget) || other.matchTarget == _this.matchTarget)&&(identical(other.safeMode, _this.safeMode) || other.safeMode == _this.safeMode)); } @override int get hashCode { final _this = this as MakeRealProfileState; return Object.hash(runtimeType,_this.profilesPath,_this.profileId,const DeepCollectionEquality().hash(_this.rawConfig),_this.realPatchConfig,_this.overrides,_this.bypassPrivateRoute,_this.keepEmptyDnsOverrides,_this.appendSystemDns,const DeepCollectionEquality().hash(_this.proxyGroups),const DeepCollectionEquality().hash(_this.rules),const DeepCollectionEquality().hash(_this.addedRules),_this.defaultUA,const DeepCollectionEquality().hash(_this.authentication),const DeepCollectionEquality().hash(_this.injectedProxyProviders),const DeepCollectionEquality().hash(_this.injectedRuleProviders),_this.matchTarget,_this.safeMode); } @override String toString() { final _this = this as MakeRealProfileState; return 'MakeRealProfileState(profilesPath: ${_this.profilesPath}, profileId: ${_this.profileId}, rawConfig: ${_this.rawConfig}, realPatchConfig: ${_this.realPatchConfig}, overrides: ${_this.overrides}, bypassPrivateRoute: ${_this.bypassPrivateRoute}, keepEmptyDnsOverrides: ${_this.keepEmptyDnsOverrides}, appendSystemDns: ${_this.appendSystemDns}, proxyGroups: ${_this.proxyGroups}, rules: ${_this.rules}, addedRules: ${_this.addedRules}, defaultUA: ${_this.defaultUA}, authentication: ${_this.authentication}, injectedProxyProviders: ${_this.injectedProxyProviders}, injectedRuleProviders: ${_this.injectedRuleProviders}, matchTarget: ${_this.matchTarget}, safeMode: ${_this.safeMode})'; } } /// @nodoc abstract mixin class $MakeRealProfileStateCopyWith<$Res> { factory $MakeRealProfileStateCopyWith(MakeRealProfileState value, $Res Function(MakeRealProfileState) _then) = _$MakeRealProfileStateCopyWithImpl; @useResult $Res call({ String profilesPath, int profileId, Map rawConfig, PatchClashConfig realPatchConfig, ProfileOverrides overrides, bool bypassPrivateRoute, bool keepEmptyDnsOverrides, bool appendSystemDns, List proxyGroups, List rules, List addedRules, String defaultUA, List authentication, Map injectedProxyProviders, Map injectedRuleProviders, String? matchTarget, bool safeMode }); $PatchClashConfigCopyWith<$Res> get realPatchConfig;$ProfileOverridesCopyWith<$Res> get overrides; } /// @nodoc class _$MakeRealProfileStateCopyWithImpl<$Res> implements $MakeRealProfileStateCopyWith<$Res> { _$MakeRealProfileStateCopyWithImpl(this._self, this._then); final MakeRealProfileState _self; final $Res Function(MakeRealProfileState) _then; /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? profilesPath = null,Object? profileId = null,Object? rawConfig = null,Object? realPatchConfig = null,Object? overrides = null,Object? bypassPrivateRoute = null,Object? keepEmptyDnsOverrides = null,Object? appendSystemDns = null,Object? proxyGroups = null,Object? rules = null,Object? addedRules = null,Object? defaultUA = null,Object? authentication = null,Object? injectedProxyProviders = null,Object? injectedRuleProviders = null,Object? matchTarget = freezed,Object? safeMode = null,}) { return _then(MakeRealProfileState( profilesPath: null == profilesPath ? _self.profilesPath : profilesPath // ignore: cast_nullable_to_non_nullable as String,profileId: null == profileId ? _self.profileId : profileId // ignore: cast_nullable_to_non_nullable as int,rawConfig: null == rawConfig ? _self.rawConfig : rawConfig // ignore: cast_nullable_to_non_nullable as Map,realPatchConfig: null == realPatchConfig ? _self.realPatchConfig : realPatchConfig // ignore: cast_nullable_to_non_nullable as PatchClashConfig,overrides: null == overrides ? _self.overrides : overrides // ignore: cast_nullable_to_non_nullable as ProfileOverrides,bypassPrivateRoute: null == bypassPrivateRoute ? _self.bypassPrivateRoute : bypassPrivateRoute // ignore: cast_nullable_to_non_nullable as bool,keepEmptyDnsOverrides: null == keepEmptyDnsOverrides ? _self.keepEmptyDnsOverrides : keepEmptyDnsOverrides // ignore: cast_nullable_to_non_nullable as bool,appendSystemDns: null == appendSystemDns ? _self.appendSystemDns : appendSystemDns // ignore: cast_nullable_to_non_nullable as bool,proxyGroups: null == proxyGroups ? _self.proxyGroups : proxyGroups // ignore: cast_nullable_to_non_nullable as List,rules: null == rules ? _self.rules : rules // ignore: cast_nullable_to_non_nullable as List,addedRules: null == addedRules ? _self.addedRules : addedRules // ignore: cast_nullable_to_non_nullable as List,defaultUA: null == defaultUA ? _self.defaultUA : defaultUA // ignore: cast_nullable_to_non_nullable as String,authentication: null == authentication ? _self.authentication : authentication // ignore: cast_nullable_to_non_nullable as List,injectedProxyProviders: null == injectedProxyProviders ? _self.injectedProxyProviders : injectedProxyProviders // ignore: cast_nullable_to_non_nullable as Map,injectedRuleProviders: null == injectedRuleProviders ? _self.injectedRuleProviders : injectedRuleProviders // ignore: cast_nullable_to_non_nullable as Map,matchTarget: freezed == matchTarget ? _self.matchTarget : matchTarget // ignore: cast_nullable_to_non_nullable as String?,safeMode: null == safeMode ? _self.safeMode : safeMode // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PatchClashConfigCopyWith<$Res> get realPatchConfig { return $PatchClashConfigCopyWith<$Res>(_self.realPatchConfig, (value) { return _then(_self.copyWith(realPatchConfig: value)); }); }/// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ProfileOverridesCopyWith<$Res> get overrides { return $ProfileOverridesCopyWith<$Res>(_self.overrides, (value) { return _then(_self.copyWith(overrides: value)); }); } } /// Adds pattern-matching-related methods to [MakeRealProfileState]. extension MakeRealProfileStatePatterns on MakeRealProfileState { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _MakeRealProfileState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _MakeRealProfileState() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _MakeRealProfileState value) $default,){ final _that = this; switch (_that) { case _MakeRealProfileState(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _MakeRealProfileState value)? $default,){ final _that = this; switch (_that) { case _MakeRealProfileState() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function( String profilesPath, int profileId, Map rawConfig, PatchClashConfig realPatchConfig, ProfileOverrides overrides, bool bypassPrivateRoute, bool keepEmptyDnsOverrides, bool appendSystemDns, List proxyGroups, List rules, List addedRules, String defaultUA, List authentication, Map injectedProxyProviders, Map injectedRuleProviders, String? matchTarget, bool safeMode)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _MakeRealProfileState() when $default != null: return $default(_that.profilesPath,_that.profileId,_that.rawConfig,_that.realPatchConfig,_that.overrides,_that.bypassPrivateRoute,_that.keepEmptyDnsOverrides,_that.appendSystemDns,_that.proxyGroups,_that.rules,_that.addedRules,_that.defaultUA,_that.authentication,_that.injectedProxyProviders,_that.injectedRuleProviders,_that.matchTarget,_that.safeMode);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function( String profilesPath, int profileId, Map rawConfig, PatchClashConfig realPatchConfig, ProfileOverrides overrides, bool bypassPrivateRoute, bool keepEmptyDnsOverrides, bool appendSystemDns, List proxyGroups, List rules, List addedRules, String defaultUA, List authentication, Map injectedProxyProviders, Map injectedRuleProviders, String? matchTarget, bool safeMode) $default,) {final _that = this; switch (_that) { case _MakeRealProfileState(): return $default(_that.profilesPath,_that.profileId,_that.rawConfig,_that.realPatchConfig,_that.overrides,_that.bypassPrivateRoute,_that.keepEmptyDnsOverrides,_that.appendSystemDns,_that.proxyGroups,_that.rules,_that.addedRules,_that.defaultUA,_that.authentication,_that.injectedProxyProviders,_that.injectedRuleProviders,_that.matchTarget,_that.safeMode);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function( String profilesPath, int profileId, Map rawConfig, PatchClashConfig realPatchConfig, ProfileOverrides overrides, bool bypassPrivateRoute, bool keepEmptyDnsOverrides, bool appendSystemDns, List proxyGroups, List rules, List addedRules, String defaultUA, List authentication, Map injectedProxyProviders, Map injectedRuleProviders, String? matchTarget, bool safeMode)? $default,) {final _that = this; switch (_that) { case _MakeRealProfileState() when $default != null: return $default(_that.profilesPath,_that.profileId,_that.rawConfig,_that.realPatchConfig,_that.overrides,_that.bypassPrivateRoute,_that.keepEmptyDnsOverrides,_that.appendSystemDns,_that.proxyGroups,_that.rules,_that.addedRules,_that.defaultUA,_that.authentication,_that.injectedProxyProviders,_that.injectedRuleProviders,_that.matchTarget,_that.safeMode);case _: return null; } } } /// @nodoc class _MakeRealProfileState implements MakeRealProfileState { const _MakeRealProfileState({required this.profilesPath, required this.profileId, required Map rawConfig, required this.realPatchConfig, this.overrides = const ProfileOverrides(), this.bypassPrivateRoute = false, this.keepEmptyDnsOverrides = false, required this.appendSystemDns, required List proxyGroups, required List rules, required List addedRules, required this.defaultUA, List authentication = const [], Map injectedProxyProviders = const {}, Map injectedRuleProviders = const {}, this.matchTarget, this.safeMode = false}): _rawConfig = rawConfig,_proxyGroups = proxyGroups,_rules = rules,_addedRules = addedRules,_authentication = authentication,_injectedProxyProviders = injectedProxyProviders,_injectedRuleProviders = injectedRuleProviders; @override final String profilesPath; @override final int profileId; final Map _rawConfig; @override Map get rawConfig { if (_rawConfig is EqualUnmodifiableMapView) return _rawConfig; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_rawConfig); } @override final PatchClashConfig realPatchConfig; @override@JsonKey() final ProfileOverrides overrides; @override@JsonKey() final bool bypassPrivateRoute; /// Set for a subscription, whose own DNS values an emptied entry replaces. @override@JsonKey() final bool keepEmptyDnsOverrides; @override final bool appendSystemDns; final List _proxyGroups; @override List get proxyGroups { if (_proxyGroups is EqualUnmodifiableListView) return _proxyGroups; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_proxyGroups); } final List _rules; @override List get rules { if (_rules is EqualUnmodifiableListView) return _rules; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_rules); } final List _addedRules; @override List get addedRules { if (_addedRules is EqualUnmodifiableListView) return _addedRules; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_addedRules); } @override final String defaultUA; final List _authentication; @override@JsonKey() List get authentication { if (_authentication is EqualUnmodifiableListView) return _authentication; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_authentication); } final Map _injectedProxyProviders; @override@JsonKey() Map get injectedProxyProviders { if (_injectedProxyProviders is EqualUnmodifiableMapView) return _injectedProxyProviders; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_injectedProxyProviders); } final Map _injectedRuleProviders; @override@JsonKey() Map get injectedRuleProviders { if (_injectedRuleProviders is EqualUnmodifiableMapView) return _injectedRuleProviders; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_injectedRuleProviders); } @override final String? matchTarget; @override@JsonKey() final bool safeMode; /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$MakeRealProfileStateCopyWith<_MakeRealProfileState> get copyWith => __$MakeRealProfileStateCopyWithImpl<_MakeRealProfileState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _MakeRealProfileState&&(identical(other.profilesPath, profilesPath) || other.profilesPath == profilesPath)&&(identical(other.profileId, profileId) || other.profileId == profileId)&&const DeepCollectionEquality().equals(other.rawConfig, _rawConfig)&&(identical(other.realPatchConfig, realPatchConfig) || other.realPatchConfig == realPatchConfig)&&(identical(other.overrides, overrides) || other.overrides == overrides)&&(identical(other.bypassPrivateRoute, bypassPrivateRoute) || other.bypassPrivateRoute == bypassPrivateRoute)&&(identical(other.keepEmptyDnsOverrides, keepEmptyDnsOverrides) || other.keepEmptyDnsOverrides == keepEmptyDnsOverrides)&&(identical(other.appendSystemDns, appendSystemDns) || other.appendSystemDns == appendSystemDns)&&const DeepCollectionEquality().equals(other.proxyGroups, _proxyGroups)&&const DeepCollectionEquality().equals(other.rules, _rules)&&const DeepCollectionEquality().equals(other.addedRules, _addedRules)&&(identical(other.defaultUA, defaultUA) || other.defaultUA == defaultUA)&&const DeepCollectionEquality().equals(other.authentication, _authentication)&&const DeepCollectionEquality().equals(other.injectedProxyProviders, _injectedProxyProviders)&&const DeepCollectionEquality().equals(other.injectedRuleProviders, _injectedRuleProviders)&&(identical(other.matchTarget, matchTarget) || other.matchTarget == matchTarget)&&(identical(other.safeMode, safeMode) || other.safeMode == safeMode)); } @override int get hashCode { return Object.hash(runtimeType,profilesPath,profileId,const DeepCollectionEquality().hash(_rawConfig),realPatchConfig,overrides,bypassPrivateRoute,keepEmptyDnsOverrides,appendSystemDns,const DeepCollectionEquality().hash(_proxyGroups),const DeepCollectionEquality().hash(_rules),const DeepCollectionEquality().hash(_addedRules),defaultUA,const DeepCollectionEquality().hash(_authentication),const DeepCollectionEquality().hash(_injectedProxyProviders),const DeepCollectionEquality().hash(_injectedRuleProviders),matchTarget,safeMode); } @override String toString() { return 'MakeRealProfileState(profilesPath: $profilesPath, profileId: $profileId, rawConfig: $rawConfig, realPatchConfig: $realPatchConfig, overrides: $overrides, bypassPrivateRoute: $bypassPrivateRoute, keepEmptyDnsOverrides: $keepEmptyDnsOverrides, appendSystemDns: $appendSystemDns, proxyGroups: $proxyGroups, rules: $rules, addedRules: $addedRules, defaultUA: $defaultUA, authentication: $authentication, injectedProxyProviders: $injectedProxyProviders, injectedRuleProviders: $injectedRuleProviders, matchTarget: $matchTarget, safeMode: $safeMode)'; } } /// @nodoc abstract mixin class _$MakeRealProfileStateCopyWith<$Res> implements $MakeRealProfileStateCopyWith<$Res> { factory _$MakeRealProfileStateCopyWith(_MakeRealProfileState value, $Res Function(_MakeRealProfileState) _then) = __$MakeRealProfileStateCopyWithImpl; @override @useResult $Res call({ String profilesPath, int profileId, Map rawConfig, PatchClashConfig realPatchConfig, ProfileOverrides overrides, bool bypassPrivateRoute, bool keepEmptyDnsOverrides, bool appendSystemDns, List proxyGroups, List rules, List addedRules, String defaultUA, List authentication, Map injectedProxyProviders, Map injectedRuleProviders, String? matchTarget, bool safeMode }); @override $PatchClashConfigCopyWith<$Res> get realPatchConfig;@override $ProfileOverridesCopyWith<$Res> get overrides; } /// @nodoc class __$MakeRealProfileStateCopyWithImpl<$Res> implements _$MakeRealProfileStateCopyWith<$Res> { __$MakeRealProfileStateCopyWithImpl(this._self, this._then); final _MakeRealProfileState _self; final $Res Function(_MakeRealProfileState) _then; /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? profilesPath = null,Object? profileId = null,Object? rawConfig = null,Object? realPatchConfig = null,Object? overrides = null,Object? bypassPrivateRoute = null,Object? keepEmptyDnsOverrides = null,Object? appendSystemDns = null,Object? proxyGroups = null,Object? rules = null,Object? addedRules = null,Object? defaultUA = null,Object? authentication = null,Object? injectedProxyProviders = null,Object? injectedRuleProviders = null,Object? matchTarget = freezed,Object? safeMode = null,}) { return _then(_MakeRealProfileState( profilesPath: null == profilesPath ? _self.profilesPath : profilesPath // ignore: cast_nullable_to_non_nullable as String,profileId: null == profileId ? _self.profileId : profileId // ignore: cast_nullable_to_non_nullable as int,rawConfig: null == rawConfig ? _self._rawConfig : rawConfig // ignore: cast_nullable_to_non_nullable as Map,realPatchConfig: null == realPatchConfig ? _self.realPatchConfig : realPatchConfig // ignore: cast_nullable_to_non_nullable as PatchClashConfig,overrides: null == overrides ? _self.overrides : overrides // ignore: cast_nullable_to_non_nullable as ProfileOverrides,bypassPrivateRoute: null == bypassPrivateRoute ? _self.bypassPrivateRoute : bypassPrivateRoute // ignore: cast_nullable_to_non_nullable as bool,keepEmptyDnsOverrides: null == keepEmptyDnsOverrides ? _self.keepEmptyDnsOverrides : keepEmptyDnsOverrides // ignore: cast_nullable_to_non_nullable as bool,appendSystemDns: null == appendSystemDns ? _self.appendSystemDns : appendSystemDns // ignore: cast_nullable_to_non_nullable as bool,proxyGroups: null == proxyGroups ? _self._proxyGroups : proxyGroups // ignore: cast_nullable_to_non_nullable as List,rules: null == rules ? _self._rules : rules // ignore: cast_nullable_to_non_nullable as List,addedRules: null == addedRules ? _self._addedRules : addedRules // ignore: cast_nullable_to_non_nullable as List,defaultUA: null == defaultUA ? _self.defaultUA : defaultUA // ignore: cast_nullable_to_non_nullable as String,authentication: null == authentication ? _self._authentication : authentication // ignore: cast_nullable_to_non_nullable as List,injectedProxyProviders: null == injectedProxyProviders ? _self._injectedProxyProviders : injectedProxyProviders // ignore: cast_nullable_to_non_nullable as Map,injectedRuleProviders: null == injectedRuleProviders ? _self._injectedRuleProviders : injectedRuleProviders // ignore: cast_nullable_to_non_nullable as Map,matchTarget: freezed == matchTarget ? _self.matchTarget : matchTarget // ignore: cast_nullable_to_non_nullable as String?,safeMode: null == safeMode ? _self.safeMode : safeMode // ignore: cast_nullable_to_non_nullable as bool, )); } /// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PatchClashConfigCopyWith<$Res> get realPatchConfig { return $PatchClashConfigCopyWith<$Res>(_self.realPatchConfig, (value) { return _then(_self.copyWith(realPatchConfig: value)); }); }/// Create a copy of MakeRealProfileState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ProfileOverridesCopyWith<$Res> get overrides { return $ProfileOverridesCopyWith<$Res>(_self.overrides, (value) { return _then(_self.copyWith(overrides: value)); }); } } /// @nodoc mixin _$MigrationData { Map? get configMap; List get rules; List