2024-06-06 00:19:07 -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
part of ' chat_component_state.dart ' ;
// **************************************************************************
// 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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
/// @nodoc
mixin _ $ChatComponentState {
// GlobalKey for the chat
GlobalKey < ChatState > get chatKey = >
throw _privateConstructorUsedError ; // ScrollController for the chat
AutoScrollController get scrollController = >
2024-07-04 23:09:37 -04:00
throw _privateConstructorUsedError ; // TextEditingController for the chat
InputTextFieldController get textEditingController = >
2024-06-06 00:19:07 -04:00
throw _privateConstructorUsedError ; // Local user
2024-06-16 22:12:24 -04:00
User ? get localUser = >
throw _privateConstructorUsedError ; // Active remote users
2024-06-06 00:19:07 -04:00
IMap < Typed < FixedEncodedString43 > , User > get remoteUsers = >
2024-06-16 22:12:24 -04:00
throw _privateConstructorUsedError ; // Historical remote users
IMap < Typed < FixedEncodedString43 > , User > get historicalRemoteUsers = >
throw _privateConstructorUsedError ; // Unknown users
IMap < Typed < FixedEncodedString43 > , User > get unknownUsers = >
2024-06-06 00:19:07 -04:00
throw _privateConstructorUsedError ; // Messages state
AsyncValue < WindowState < Message > > get messageWindow = >
throw _privateConstructorUsedError ; // Title of the chat
String get title = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$ChatComponentStateCopyWith < ChatComponentState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ChatComponentStateCopyWith < $Res > {
factory $ChatComponentStateCopyWith (
ChatComponentState value , $Res Function ( ChatComponentState ) then ) =
_ $ChatComponentStateCopyWithImpl < $Res , ChatComponentState > ;
@ useResult
$Res call (
{ GlobalKey < ChatState > chatKey ,
AutoScrollController scrollController ,
2024-07-04 23:09:37 -04:00
InputTextFieldController textEditingController ,
2024-06-16 22:12:24 -04:00
User ? localUser ,
2024-06-06 00:19:07 -04:00
IMap < Typed < FixedEncodedString43 > , User > remoteUsers ,
2024-06-16 22:12:24 -04:00
IMap < Typed < FixedEncodedString43 > , User > historicalRemoteUsers ,
IMap < Typed < FixedEncodedString43 > , User > unknownUsers ,
2024-06-06 00:19:07 -04:00
AsyncValue < WindowState < Message > > messageWindow ,
String title } ) ;
$AsyncValueCopyWith < WindowState < Message > , $Res > get messageWindow ;
}
/// @nodoc
class _ $ChatComponentStateCopyWithImpl < $Res , $Val extends ChatComponentState >
implements $ChatComponentStateCopyWith < $Res > {
_ $ChatComponentStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? chatKey = null ,
Object ? scrollController = null ,
2024-07-04 23:09:37 -04:00
Object ? textEditingController = null ,
2024-06-16 22:12:24 -04:00
Object ? localUser = freezed ,
2024-06-06 00:19:07 -04:00
Object ? remoteUsers = null ,
2024-06-16 22:12:24 -04:00
Object ? historicalRemoteUsers = null ,
Object ? unknownUsers = null ,
2024-06-06 00:19:07 -04:00
Object ? messageWindow = null ,
Object ? title = null ,
} ) {
return _then ( _value . copyWith (
chatKey: null = = chatKey
? _value . chatKey
: chatKey // ignore: cast_nullable_to_non_nullable
as GlobalKey < ChatState > ,
scrollController: null = = scrollController
? _value . scrollController
: scrollController // ignore: cast_nullable_to_non_nullable
as AutoScrollController ,
2024-07-04 23:09:37 -04:00
textEditingController: null = = textEditingController
? _value . textEditingController
: textEditingController // ignore: cast_nullable_to_non_nullable
as InputTextFieldController ,
2024-06-16 22:12:24 -04:00
localUser: freezed = = localUser
2024-06-06 00:19:07 -04:00
? _value . localUser
: localUser // ignore: cast_nullable_to_non_nullable
2024-06-16 22:12:24 -04:00
as User ? ,
2024-06-06 00:19:07 -04:00
remoteUsers: null = = remoteUsers
? _value . remoteUsers
: remoteUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
2024-06-16 22:12:24 -04:00
historicalRemoteUsers: null = = historicalRemoteUsers
? _value . historicalRemoteUsers
: historicalRemoteUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
unknownUsers: null = = unknownUsers
? _value . unknownUsers
: unknownUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
2024-06-06 00:19:07 -04:00
messageWindow: null = = messageWindow
? _value . messageWindow
: messageWindow // ignore: cast_nullable_to_non_nullable
as AsyncValue < WindowState < Message > > ,
title: null = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$AsyncValueCopyWith < WindowState < Message > , $Res > get messageWindow {
return $AsyncValueCopyWith < WindowState < Message > , $Res > ( _value . messageWindow ,
( value ) {
return _then ( _value . copyWith ( messageWindow: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $ChatComponentStateImplCopyWith < $Res >
implements $ChatComponentStateCopyWith < $Res > {
factory _ $ $ChatComponentStateImplCopyWith ( _ $ChatComponentStateImpl value ,
$Res Function ( _ $ChatComponentStateImpl ) then ) =
__ $ $ChatComponentStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ GlobalKey < ChatState > chatKey ,
AutoScrollController scrollController ,
2024-07-04 23:09:37 -04:00
InputTextFieldController textEditingController ,
2024-06-16 22:12:24 -04:00
User ? localUser ,
2024-06-06 00:19:07 -04:00
IMap < Typed < FixedEncodedString43 > , User > remoteUsers ,
2024-06-16 22:12:24 -04:00
IMap < Typed < FixedEncodedString43 > , User > historicalRemoteUsers ,
IMap < Typed < FixedEncodedString43 > , User > unknownUsers ,
2024-06-06 00:19:07 -04:00
AsyncValue < WindowState < Message > > messageWindow ,
String title } ) ;
@ override
$AsyncValueCopyWith < WindowState < Message > , $Res > get messageWindow ;
}
/// @nodoc
class __ $ $ChatComponentStateImplCopyWithImpl < $Res >
extends _ $ChatComponentStateCopyWithImpl < $Res , _ $ChatComponentStateImpl >
implements _ $ $ChatComponentStateImplCopyWith < $Res > {
__ $ $ChatComponentStateImplCopyWithImpl ( _ $ChatComponentStateImpl _value ,
$Res Function ( _ $ChatComponentStateImpl ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? chatKey = null ,
Object ? scrollController = null ,
2024-07-04 23:09:37 -04:00
Object ? textEditingController = null ,
2024-06-16 22:12:24 -04:00
Object ? localUser = freezed ,
2024-06-06 00:19:07 -04:00
Object ? remoteUsers = null ,
2024-06-16 22:12:24 -04:00
Object ? historicalRemoteUsers = null ,
Object ? unknownUsers = null ,
2024-06-06 00:19:07 -04:00
Object ? messageWindow = null ,
Object ? title = null ,
} ) {
return _then ( _ $ChatComponentStateImpl (
chatKey: null = = chatKey
? _value . chatKey
: chatKey // ignore: cast_nullable_to_non_nullable
as GlobalKey < ChatState > ,
scrollController: null = = scrollController
? _value . scrollController
: scrollController // ignore: cast_nullable_to_non_nullable
as AutoScrollController ,
2024-07-04 23:09:37 -04:00
textEditingController: null = = textEditingController
? _value . textEditingController
: textEditingController // ignore: cast_nullable_to_non_nullable
as InputTextFieldController ,
2024-06-16 22:12:24 -04:00
localUser: freezed = = localUser
2024-06-06 00:19:07 -04:00
? _value . localUser
: localUser // ignore: cast_nullable_to_non_nullable
2024-06-16 22:12:24 -04:00
as User ? ,
2024-06-06 00:19:07 -04:00
remoteUsers: null = = remoteUsers
? _value . remoteUsers
: remoteUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
2024-06-16 22:12:24 -04:00
historicalRemoteUsers: null = = historicalRemoteUsers
? _value . historicalRemoteUsers
: historicalRemoteUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
unknownUsers: null = = unknownUsers
? _value . unknownUsers
: unknownUsers // ignore: cast_nullable_to_non_nullable
as IMap < Typed < FixedEncodedString43 > , User > ,
2024-06-06 00:19:07 -04:00
messageWindow: null = = messageWindow
? _value . messageWindow
: messageWindow // ignore: cast_nullable_to_non_nullable
as AsyncValue < WindowState < Message > > ,
title: null = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
class _ $ChatComponentStateImpl implements _ChatComponentState {
const _ $ChatComponentStateImpl (
{ required this . chatKey ,
required this . scrollController ,
2024-07-04 23:09:37 -04:00
required this . textEditingController ,
2024-06-06 00:19:07 -04:00
required this . localUser ,
required this . remoteUsers ,
2024-06-16 22:12:24 -04:00
required this . historicalRemoteUsers ,
required this . unknownUsers ,
2024-06-06 00:19:07 -04:00
required this . messageWindow ,
required this . title } ) ;
// GlobalKey for the chat
@ override
final GlobalKey < ChatState > chatKey ;
// ScrollController for the chat
@ override
final AutoScrollController scrollController ;
2024-07-04 23:09:37 -04:00
// TextEditingController for the chat
@ override
final InputTextFieldController textEditingController ;
2024-06-06 00:19:07 -04:00
// Local user
@ override
2024-06-16 22:12:24 -04:00
final User ? localUser ;
// Active remote users
2024-06-06 00:19:07 -04:00
@ override
final IMap < Typed < FixedEncodedString43 > , User > remoteUsers ;
2024-06-16 22:12:24 -04:00
// Historical remote users
@ override
final IMap < Typed < FixedEncodedString43 > , User > historicalRemoteUsers ;
// Unknown users
@ override
final IMap < Typed < FixedEncodedString43 > , User > unknownUsers ;
2024-06-06 00:19:07 -04:00
// Messages state
@ override
final AsyncValue < WindowState < Message > > messageWindow ;
// Title of the chat
@ override
final String title ;
@ override
String toString ( ) {
2024-07-04 23:09:37 -04:00
return ' ChatComponentState(chatKey: $ chatKey , scrollController: $ scrollController , textEditingController: $ textEditingController , localUser: $ localUser , remoteUsers: $ remoteUsers , historicalRemoteUsers: $ historicalRemoteUsers , unknownUsers: $ unknownUsers , messageWindow: $ messageWindow , title: $ title ) ' ;
2024-06-06 00:19:07 -04:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $ChatComponentStateImpl & &
( identical ( other . chatKey , chatKey ) | | other . chatKey = = chatKey ) & &
( identical ( other . scrollController , scrollController ) | |
other . scrollController = = scrollController ) & &
2024-07-04 23:09:37 -04:00
( identical ( other . textEditingController , textEditingController ) | |
other . textEditingController = = textEditingController ) & &
2024-06-06 00:19:07 -04:00
( identical ( other . localUser , localUser ) | |
other . localUser = = localUser ) & &
( identical ( other . remoteUsers , remoteUsers ) | |
other . remoteUsers = = remoteUsers ) & &
2024-06-16 22:12:24 -04:00
( identical ( other . historicalRemoteUsers , historicalRemoteUsers ) | |
other . historicalRemoteUsers = = historicalRemoteUsers ) & &
( identical ( other . unknownUsers , unknownUsers ) | |
other . unknownUsers = = unknownUsers ) & &
2024-06-06 00:19:07 -04:00
( identical ( other . messageWindow , messageWindow ) | |
other . messageWindow = = messageWindow ) & &
( identical ( other . title , title ) | | other . title = = title ) ) ;
}
@ override
2024-06-16 22:12:24 -04:00
int get hashCode = > Object . hash (
runtimeType ,
chatKey ,
scrollController ,
2024-07-04 23:09:37 -04:00
textEditingController ,
2024-06-16 22:12:24 -04:00
localUser ,
remoteUsers ,
historicalRemoteUsers ,
unknownUsers ,
messageWindow ,
title ) ;
2024-06-06 00:19:07 -04:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ChatComponentStateImplCopyWith < _ $ChatComponentStateImpl > get copyWith = >
__ $ $ChatComponentStateImplCopyWithImpl < _ $ChatComponentStateImpl > (
this , _ $identity ) ;
}
abstract class _ChatComponentState implements ChatComponentState {
const factory _ChatComponentState (
{ required final GlobalKey < ChatState > chatKey ,
required final AutoScrollController scrollController ,
2024-07-04 23:09:37 -04:00
required final InputTextFieldController textEditingController ,
2024-06-16 22:12:24 -04:00
required final User ? localUser ,
2024-06-06 00:19:07 -04:00
required final IMap < Typed < FixedEncodedString43 > , User > remoteUsers ,
2024-06-16 22:12:24 -04:00
required final IMap < Typed < FixedEncodedString43 > , User >
historicalRemoteUsers ,
required final IMap < Typed < FixedEncodedString43 > , User > unknownUsers ,
2024-06-06 00:19:07 -04:00
required final AsyncValue < WindowState < Message > > messageWindow ,
required final String title } ) = _ $ChatComponentStateImpl ;
@ override // GlobalKey for the chat
GlobalKey < ChatState > get chatKey ;
@ override // ScrollController for the chat
AutoScrollController get scrollController ;
2024-07-04 23:09:37 -04:00
@ override // TextEditingController for the chat
InputTextFieldController get textEditingController ;
2024-06-06 00:19:07 -04:00
@ override // Local user
2024-06-16 22:12:24 -04:00
User ? get localUser ;
@ override // Active remote users
2024-06-06 00:19:07 -04:00
IMap < Typed < FixedEncodedString43 > , User > get remoteUsers ;
2024-06-16 22:12:24 -04:00
@ override // Historical remote users
IMap < Typed < FixedEncodedString43 > , User > get historicalRemoteUsers ;
@ override // Unknown users
IMap < Typed < FixedEncodedString43 > , User > get unknownUsers ;
2024-06-06 00:19:07 -04:00
@ override // Messages state
AsyncValue < WindowState < Message > > get messageWindow ;
@ override // Title of the chat
String get title ;
@ override
@ JsonKey ( ignore: true )
_ $ $ChatComponentStateImplCopyWith < _ $ChatComponentStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}