// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // ignore_for_file: type=lint // 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 'performance_ui_model.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$HomePerformanceUIState { bool get showGraphicsPerformanceTip; bool get enabled; Map>? get performanceMap; String get workingString; /// Create a copy of HomePerformanceUIState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomePerformanceUIStateCopyWith get copyWith => _$HomePerformanceUIStateCopyWithImpl(this as HomePerformanceUIState, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is HomePerformanceUIState&&(identical(other.showGraphicsPerformanceTip, showGraphicsPerformanceTip) || other.showGraphicsPerformanceTip == showGraphicsPerformanceTip)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other.performanceMap, performanceMap)&&(identical(other.workingString, workingString) || other.workingString == workingString)); } @override int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(performanceMap),workingString); @override String toString() { return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; } } /// @nodoc abstract mixin class $HomePerformanceUIStateCopyWith<$Res> { factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value, $Res Function(HomePerformanceUIState) _then) = _$HomePerformanceUIStateCopyWithImpl; @useResult $Res call({ bool showGraphicsPerformanceTip, bool enabled, Map>? performanceMap, String workingString }); } /// @nodoc class _$HomePerformanceUIStateCopyWithImpl<$Res> implements $HomePerformanceUIStateCopyWith<$Res> { _$HomePerformanceUIStateCopyWithImpl(this._self, this._then); final HomePerformanceUIState _self; final $Res Function(HomePerformanceUIState) _then; /// Create a copy of HomePerformanceUIState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) { return _then(_self.copyWith( showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable as bool,performanceMap: freezed == performanceMap ? _self.performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable as Map>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable as String, )); } } /// Adds pattern-matching-related methods to [HomePerformanceUIState]. extension HomePerformanceUIStatePatterns on HomePerformanceUIState { /// 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( _HomePerformanceUIState value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _HomePerformanceUIState() 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( _HomePerformanceUIState value) $default,){ final _that = this; switch (_that) { case _HomePerformanceUIState(): 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( _HomePerformanceUIState value)? $default,){ final _that = this; switch (_that) { case _HomePerformanceUIState() 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 showGraphicsPerformanceTip, bool enabled, Map>? performanceMap, String workingString)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _HomePerformanceUIState() when $default != null: return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);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 showGraphicsPerformanceTip, bool enabled, Map>? performanceMap, String workingString) $default,) {final _that = this; switch (_that) { case _HomePerformanceUIState(): return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);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 showGraphicsPerformanceTip, bool enabled, Map>? performanceMap, String workingString)? $default,) {final _that = this; switch (_that) { case _HomePerformanceUIState() when $default != null: return $default(_that.showGraphicsPerformanceTip,_that.enabled,_that.performanceMap,_that.workingString);case _: return null; } } } /// @nodoc class _HomePerformanceUIState implements HomePerformanceUIState { _HomePerformanceUIState({this.showGraphicsPerformanceTip = true, this.enabled = false, final Map>? performanceMap, this.workingString = ""}): _performanceMap = performanceMap; @override@JsonKey() final bool showGraphicsPerformanceTip; @override@JsonKey() final bool enabled; final Map>? _performanceMap; @override Map>? get performanceMap { final value = _performanceMap; if (value == null) return null; if (_performanceMap is EqualUnmodifiableMapView) return _performanceMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } @override@JsonKey() final String workingString; /// Create a copy of HomePerformanceUIState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith => __$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _HomePerformanceUIState&&(identical(other.showGraphicsPerformanceTip, showGraphicsPerformanceTip) || other.showGraphicsPerformanceTip == showGraphicsPerformanceTip)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other._performanceMap, _performanceMap)&&(identical(other.workingString, workingString) || other.workingString == workingString)); } @override int get hashCode => Object.hash(runtimeType,showGraphicsPerformanceTip,enabled,const DeepCollectionEquality().hash(_performanceMap),workingString); @override String toString() { return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)'; } } /// @nodoc abstract mixin class _$HomePerformanceUIStateCopyWith<$Res> implements $HomePerformanceUIStateCopyWith<$Res> { factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value, $Res Function(_HomePerformanceUIState) _then) = __$HomePerformanceUIStateCopyWithImpl; @override @useResult $Res call({ bool showGraphicsPerformanceTip, bool enabled, Map>? performanceMap, String workingString }); } /// @nodoc class __$HomePerformanceUIStateCopyWithImpl<$Res> implements _$HomePerformanceUIStateCopyWith<$Res> { __$HomePerformanceUIStateCopyWithImpl(this._self, this._then); final _HomePerformanceUIState _self; final $Res Function(_HomePerformanceUIState) _then; /// Create a copy of HomePerformanceUIState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? showGraphicsPerformanceTip = null,Object? enabled = null,Object? performanceMap = freezed,Object? workingString = null,}) { return _then(_HomePerformanceUIState( showGraphicsPerformanceTip: null == showGraphicsPerformanceTip ? _self.showGraphicsPerformanceTip : showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable as bool,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable as bool,performanceMap: freezed == performanceMap ? _self._performanceMap : performanceMap // ignore: cast_nullable_to_non_nullable as Map>?,workingString: null == workingString ? _self.workingString : workingString // ignore: cast_nullable_to_non_nullable as String, )); } } // dart format on