mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-08 15:29:38 -04:00
173 lines
5.2 KiB
Dart
173 lines
5.2 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 'router_cubit.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
// dart format off
|
|
T _$identity<T>(T value) => value;
|
|
|
|
/// @nodoc
|
|
mixin _$RouterState implements DiagnosticableTreeMixin {
|
|
bool get hasAnyAccount;
|
|
|
|
/// Create a copy of RouterState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
$RouterStateCopyWith<RouterState> get copyWith =>
|
|
_$RouterStateCopyWithImpl<RouterState>(this as RouterState, _$identity);
|
|
|
|
/// Serializes this RouterState to a JSON map.
|
|
Map<String, dynamic> toJson();
|
|
|
|
@override
|
|
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
|
properties
|
|
..add(DiagnosticsProperty('type', 'RouterState'))
|
|
..add(DiagnosticsProperty('hasAnyAccount', hasAnyAccount));
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is RouterState &&
|
|
(identical(other.hasAnyAccount, hasAnyAccount) ||
|
|
other.hasAnyAccount == hasAnyAccount));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, hasAnyAccount);
|
|
|
|
@override
|
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
return 'RouterState(hasAnyAccount: $hasAnyAccount)';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class $RouterStateCopyWith<$Res> {
|
|
factory $RouterStateCopyWith(
|
|
RouterState value, $Res Function(RouterState) _then) =
|
|
_$RouterStateCopyWithImpl;
|
|
@useResult
|
|
$Res call({bool hasAnyAccount});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$RouterStateCopyWithImpl<$Res> implements $RouterStateCopyWith<$Res> {
|
|
_$RouterStateCopyWithImpl(this._self, this._then);
|
|
|
|
final RouterState _self;
|
|
final $Res Function(RouterState) _then;
|
|
|
|
/// Create a copy of RouterState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? hasAnyAccount = null,
|
|
}) {
|
|
return _then(_self.copyWith(
|
|
hasAnyAccount: null == hasAnyAccount
|
|
? _self.hasAnyAccount
|
|
: hasAnyAccount // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _RouterState with DiagnosticableTreeMixin implements RouterState {
|
|
const _RouterState({required this.hasAnyAccount});
|
|
factory _RouterState.fromJson(Map<String, dynamic> json) =>
|
|
_$RouterStateFromJson(json);
|
|
|
|
@override
|
|
final bool hasAnyAccount;
|
|
|
|
/// Create a copy of RouterState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@pragma('vm:prefer-inline')
|
|
_$RouterStateCopyWith<_RouterState> get copyWith =>
|
|
__$RouterStateCopyWithImpl<_RouterState>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$RouterStateToJson(
|
|
this,
|
|
);
|
|
}
|
|
|
|
@override
|
|
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
|
properties
|
|
..add(DiagnosticsProperty('type', 'RouterState'))
|
|
..add(DiagnosticsProperty('hasAnyAccount', hasAnyAccount));
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _RouterState &&
|
|
(identical(other.hasAnyAccount, hasAnyAccount) ||
|
|
other.hasAnyAccount == hasAnyAccount));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, hasAnyAccount);
|
|
|
|
@override
|
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
|
return 'RouterState(hasAnyAccount: $hasAnyAccount)';
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract mixin class _$RouterStateCopyWith<$Res>
|
|
implements $RouterStateCopyWith<$Res> {
|
|
factory _$RouterStateCopyWith(
|
|
_RouterState value, $Res Function(_RouterState) _then) =
|
|
__$RouterStateCopyWithImpl;
|
|
@override
|
|
@useResult
|
|
$Res call({bool hasAnyAccount});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$RouterStateCopyWithImpl<$Res> implements _$RouterStateCopyWith<$Res> {
|
|
__$RouterStateCopyWithImpl(this._self, this._then);
|
|
|
|
final _RouterState _self;
|
|
final $Res Function(_RouterState) _then;
|
|
|
|
/// Create a copy of RouterState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$Res call({
|
|
Object? hasAnyAccount = null,
|
|
}) {
|
|
return _then(_RouterState(
|
|
hasAnyAccount: null == hasAnyAccount
|
|
? _self.hasAnyAccount
|
|
: hasAnyAccount // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
// dart format on
|