// dart format width=80 // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // 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 'window_state.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$WindowState implements DiagnosticableTreeMixin { // List of objects in the window IList get window; // Total number of objects (windowTail max) int get length; // One past the end of the last element int get windowTail; // The total number of elements to try to keep in the window int get windowCount; // If we should have the tail following the array bool get follow; /// Create a copy of WindowState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $WindowStateCopyWith> get copyWith => _$WindowStateCopyWithImpl>( this as WindowState, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'WindowState<$T>')) ..add(DiagnosticsProperty('window', window)) ..add(DiagnosticsProperty('length', length)) ..add(DiagnosticsProperty('windowTail', windowTail)) ..add(DiagnosticsProperty('windowCount', windowCount)) ..add(DiagnosticsProperty('follow', follow)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is WindowState && const DeepCollectionEquality().equals(other.window, window) && (identical(other.length, length) || other.length == length) && (identical(other.windowTail, windowTail) || other.windowTail == windowTail) && (identical(other.windowCount, windowCount) || other.windowCount == windowCount) && (identical(other.follow, follow) || other.follow == follow)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(window), length, windowTail, windowCount, follow); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'WindowState<$T>(window: $window, length: $length, windowTail: $windowTail, windowCount: $windowCount, follow: $follow)'; } } /// @nodoc abstract mixin class $WindowStateCopyWith { factory $WindowStateCopyWith( WindowState value, $Res Function(WindowState) _then) = _$WindowStateCopyWithImpl; @useResult $Res call( {IList window, int length, int windowTail, int windowCount, bool follow}); } /// @nodoc class _$WindowStateCopyWithImpl implements $WindowStateCopyWith { _$WindowStateCopyWithImpl(this._self, this._then); final WindowState _self; final $Res Function(WindowState) _then; /// Create a copy of WindowState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? window = null, Object? length = null, Object? windowTail = null, Object? windowCount = null, Object? follow = null, }) { return _then(_self.copyWith( window: null == window ? _self.window : window // ignore: cast_nullable_to_non_nullable as IList, length: null == length ? _self.length : length // ignore: cast_nullable_to_non_nullable as int, windowTail: null == windowTail ? _self.windowTail : windowTail // ignore: cast_nullable_to_non_nullable as int, windowCount: null == windowCount ? _self.windowCount : windowCount // ignore: cast_nullable_to_non_nullable as int, follow: null == follow ? _self.follow : follow // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc class _WindowState with DiagnosticableTreeMixin implements WindowState { const _WindowState( {required this.window, required this.length, required this.windowTail, required this.windowCount, required this.follow}); // List of objects in the window @override final IList window; // Total number of objects (windowTail max) @override final int length; // One past the end of the last element @override final int windowTail; // The total number of elements to try to keep in the window @override final int windowCount; // If we should have the tail following the array @override final bool follow; /// Create a copy of WindowState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$WindowStateCopyWith> get copyWith => __$WindowStateCopyWithImpl>(this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'WindowState<$T>')) ..add(DiagnosticsProperty('window', window)) ..add(DiagnosticsProperty('length', length)) ..add(DiagnosticsProperty('windowTail', windowTail)) ..add(DiagnosticsProperty('windowCount', windowCount)) ..add(DiagnosticsProperty('follow', follow)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _WindowState && const DeepCollectionEquality().equals(other.window, window) && (identical(other.length, length) || other.length == length) && (identical(other.windowTail, windowTail) || other.windowTail == windowTail) && (identical(other.windowCount, windowCount) || other.windowCount == windowCount) && (identical(other.follow, follow) || other.follow == follow)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(window), length, windowTail, windowCount, follow); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'WindowState<$T>(window: $window, length: $length, windowTail: $windowTail, windowCount: $windowCount, follow: $follow)'; } } /// @nodoc abstract mixin class _$WindowStateCopyWith implements $WindowStateCopyWith { factory _$WindowStateCopyWith( _WindowState value, $Res Function(_WindowState) _then) = __$WindowStateCopyWithImpl; @override @useResult $Res call( {IList window, int length, int windowTail, int windowCount, bool follow}); } /// @nodoc class __$WindowStateCopyWithImpl implements _$WindowStateCopyWith { __$WindowStateCopyWithImpl(this._self, this._then); final _WindowState _self; final $Res Function(_WindowState) _then; /// Create a copy of WindowState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({ Object? window = null, Object? length = null, Object? windowTail = null, Object? windowCount = null, Object? follow = null, }) { return _then(_WindowState( window: null == window ? _self.window : window // ignore: cast_nullable_to_non_nullable as IList, length: null == length ? _self.length : length // ignore: cast_nullable_to_non_nullable as int, windowTail: null == windowTail ? _self.windowTail : windowTail // ignore: cast_nullable_to_non_nullable as int, windowCount: null == windowCount ? _self.windowCount : windowCount // ignore: cast_nullable_to_non_nullable as int, follow: null == follow ? _self.follow : follow // ignore: cast_nullable_to_non_nullable as bool, )); } } // dart format on