mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-04-26 01:59:11 -04:00
266 lines
8.6 KiB
Dart
266 lines
8.6 KiB
Dart
// 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>(T value) => value;
|
|
|
|
/// @nodoc
|
|
mixin _$WindowState<T> implements DiagnosticableTreeMixin {
|
|
// List of objects in the window
|
|
IList<T> 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<T, WindowState<T>> get copyWith =>
|
|
_$WindowStateCopyWithImpl<T, WindowState<T>>(
|
|
this as WindowState<T>, _$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<T> &&
|
|
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<T, $Res> {
|
|
factory $WindowStateCopyWith(
|
|
WindowState<T> value, $Res Function(WindowState<T>) _then) =
|
|
_$WindowStateCopyWithImpl;
|
|
@useResult
|
|
$Res call(
|
|
{IList<T> window,
|
|
int length,
|
|
int windowTail,
|
|
int windowCount,
|
|
bool follow});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$WindowStateCopyWithImpl<T, $Res>
|
|
implements $WindowStateCopyWith<T, $Res> {
|
|
_$WindowStateCopyWithImpl(this._self, this._then);
|
|
|
|
final WindowState<T> _self;
|
|
final $Res Function(WindowState<T>) _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<T>,
|
|
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<T> with DiagnosticableTreeMixin implements WindowState<T> {
|
|
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<T> 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<T, _WindowState<T>> get copyWith =>
|
|
__$WindowStateCopyWithImpl<T, _WindowState<T>>(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<T> &&
|
|
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<T, $Res>
|
|
implements $WindowStateCopyWith<T, $Res> {
|
|
factory _$WindowStateCopyWith(
|
|
_WindowState<T> value, $Res Function(_WindowState<T>) _then) =
|
|
__$WindowStateCopyWithImpl;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{IList<T> window,
|
|
int length,
|
|
int windowTail,
|
|
int windowCount,
|
|
bool follow});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$WindowStateCopyWithImpl<T, $Res>
|
|
implements _$WindowStateCopyWith<T, $Res> {
|
|
__$WindowStateCopyWithImpl(this._self, this._then);
|
|
|
|
final _WindowState<T> _self;
|
|
final $Res Function(_WindowState<T>) _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<T>(
|
|
window: null == window
|
|
? _self.window
|
|
: window // ignore: cast_nullable_to_non_nullable
|
|
as IList<T>,
|
|
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
|