veilidchat/lib/chat/models/window_state.freezed.dart

250 lines
8.2 KiB
Dart
Raw Normal View History

2024-06-03 21:20:00 -04:00
// 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
2024-06-06 00:19:07 -04:00
part of 'window_state.dart';
2024-06-03 21:20:00 -04:00
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
/// @nodoc
2024-06-06 00:19:07 -04:00
mixin _$WindowState<T> {
// List of objects in the window
IList<T> get window =>
throw _privateConstructorUsedError; // Total number of objects (windowTail max)
2024-06-03 21:20:00 -04:00
int get length =>
throw _privateConstructorUsedError; // One past the end of the last element
int get windowTail =>
2024-06-06 00:19:07 -04:00
throw _privateConstructorUsedError; // The total number of elements to try to keep in the window
2024-06-03 21:20:00 -04:00
int get windowCount =>
throw _privateConstructorUsedError; // If we should have the tail following the array
bool get follow => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
2024-06-06 00:19:07 -04:00
$WindowStateCopyWith<T, WindowState<T>> get copyWith =>
2024-06-03 21:20:00 -04:00
throw _privateConstructorUsedError;
}
/// @nodoc
2024-06-06 00:19:07 -04:00
abstract class $WindowStateCopyWith<T, $Res> {
factory $WindowStateCopyWith(
WindowState<T> value, $Res Function(WindowState<T>) then) =
_$WindowStateCopyWithImpl<T, $Res, WindowState<T>>;
2024-06-03 21:20:00 -04:00
@useResult
$Res call(
2024-06-06 00:19:07 -04:00
{IList<T> window,
2024-06-03 21:20:00 -04:00
int length,
int windowTail,
int windowCount,
bool follow});
}
/// @nodoc
2024-06-06 00:19:07 -04:00
class _$WindowStateCopyWithImpl<T, $Res, $Val extends WindowState<T>>
implements $WindowStateCopyWith<T, $Res> {
_$WindowStateCopyWithImpl(this._value, this._then);
2024-06-03 21:20:00 -04:00
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
2024-06-06 00:19:07 -04:00
Object? window = null,
2024-06-03 21:20:00 -04:00
Object? length = null,
Object? windowTail = null,
Object? windowCount = null,
Object? follow = null,
}) {
return _then(_value.copyWith(
2024-06-06 00:19:07 -04:00
window: null == window
? _value.window
: window // ignore: cast_nullable_to_non_nullable
as IList<T>,
2024-06-03 21:20:00 -04:00
length: null == length
? _value.length
: length // ignore: cast_nullable_to_non_nullable
as int,
windowTail: null == windowTail
? _value.windowTail
: windowTail // ignore: cast_nullable_to_non_nullable
as int,
windowCount: null == windowCount
? _value.windowCount
: windowCount // ignore: cast_nullable_to_non_nullable
as int,
follow: null == follow
? _value.follow
: follow // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
/// @nodoc
2024-06-06 00:19:07 -04:00
abstract class _$$WindowStateImplCopyWith<T, $Res>
implements $WindowStateCopyWith<T, $Res> {
factory _$$WindowStateImplCopyWith(_$WindowStateImpl<T> value,
$Res Function(_$WindowStateImpl<T>) then) =
__$$WindowStateImplCopyWithImpl<T, $Res>;
2024-06-03 21:20:00 -04:00
@override
@useResult
$Res call(
2024-06-06 00:19:07 -04:00
{IList<T> window,
2024-06-03 21:20:00 -04:00
int length,
int windowTail,
int windowCount,
bool follow});
}
/// @nodoc
2024-06-06 00:19:07 -04:00
class __$$WindowStateImplCopyWithImpl<T, $Res>
extends _$WindowStateCopyWithImpl<T, $Res, _$WindowStateImpl<T>>
implements _$$WindowStateImplCopyWith<T, $Res> {
__$$WindowStateImplCopyWithImpl(
_$WindowStateImpl<T> _value, $Res Function(_$WindowStateImpl<T>) _then)
2024-06-03 21:20:00 -04:00
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
2024-06-06 00:19:07 -04:00
Object? window = null,
2024-06-03 21:20:00 -04:00
Object? length = null,
Object? windowTail = null,
Object? windowCount = null,
Object? follow = null,
}) {
2024-06-06 00:19:07 -04:00
return _then(_$WindowStateImpl<T>(
window: null == window
? _value.window
: window // ignore: cast_nullable_to_non_nullable
as IList<T>,
2024-06-03 21:20:00 -04:00
length: null == length
? _value.length
: length // ignore: cast_nullable_to_non_nullable
as int,
windowTail: null == windowTail
? _value.windowTail
: windowTail // ignore: cast_nullable_to_non_nullable
as int,
windowCount: null == windowCount
? _value.windowCount
: windowCount // ignore: cast_nullable_to_non_nullable
as int,
follow: null == follow
? _value.follow
: follow // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
2024-06-06 00:19:07 -04:00
class _$WindowStateImpl<T>
2024-06-03 21:20:00 -04:00
with DiagnosticableTreeMixin
2024-06-06 00:19:07 -04:00
implements _WindowState<T> {
const _$WindowStateImpl(
{required this.window,
2024-06-03 21:20:00 -04:00
required this.length,
required this.windowTail,
required this.windowCount,
required this.follow});
2024-06-06 00:19:07 -04:00
// List of objects in the window
2024-06-03 21:20:00 -04:00
@override
2024-06-06 00:19:07 -04:00
final IList<T> window;
// Total number of objects (windowTail max)
2024-06-03 21:20:00 -04:00
@override
final int length;
// One past the end of the last element
@override
final int windowTail;
2024-06-06 00:19:07 -04:00
// The total number of elements to try to keep in the window
2024-06-03 21:20:00 -04:00
@override
final int windowCount;
// If we should have the tail following the array
@override
final bool follow;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
2024-06-06 00:19:07 -04:00
return 'WindowState<$T>(window: $window, length: $length, windowTail: $windowTail, windowCount: $windowCount, follow: $follow)';
2024-06-03 21:20:00 -04:00
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
2024-06-06 00:19:07 -04:00
..add(DiagnosticsProperty('type', 'WindowState<$T>'))
..add(DiagnosticsProperty('window', window))
2024-06-03 21:20:00 -04:00
..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 &&
2024-06-06 00:19:07 -04:00
other is _$WindowStateImpl<T> &&
const DeepCollectionEquality().equals(other.window, window) &&
2024-06-03 21:20:00 -04:00
(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,
2024-06-06 00:19:07 -04:00
const DeepCollectionEquality().hash(window),
2024-06-03 21:20:00 -04:00
length,
windowTail,
windowCount,
follow);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
2024-06-06 00:19:07 -04:00
_$$WindowStateImplCopyWith<T, _$WindowStateImpl<T>> get copyWith =>
__$$WindowStateImplCopyWithImpl<T, _$WindowStateImpl<T>>(
this, _$identity);
2024-06-03 21:20:00 -04:00
}
2024-06-06 00:19:07 -04:00
abstract class _WindowState<T> implements WindowState<T> {
const factory _WindowState(
{required final IList<T> window,
2024-06-03 21:20:00 -04:00
required final int length,
required final int windowTail,
required final int windowCount,
2024-06-06 00:19:07 -04:00
required final bool follow}) = _$WindowStateImpl<T>;
2024-06-03 21:20:00 -04:00
2024-06-06 00:19:07 -04:00
@override // List of objects in the window
IList<T> get window;
@override // Total number of objects (windowTail max)
2024-06-03 21:20:00 -04:00
int get length;
@override // One past the end of the last element
int get windowTail;
2024-06-06 00:19:07 -04:00
@override // The total number of elements to try to keep in the window
2024-06-03 21:20:00 -04:00
int get windowCount;
@override // If we should have the tail following the array
bool get follow;
@override
@JsonKey(ignore: true)
2024-06-06 00:19:07 -04:00
_$$WindowStateImplCopyWith<T, _$WindowStateImpl<T>> get copyWith =>
2024-06-03 21:20:00 -04:00
throw _privateConstructorUsedError;
}