|
|
|
|
@@ -20,16 +20,19 @@ mixin _$ChatRoomState {
|
|
|
|
|
TResult when<TResult extends Object?>(
|
|
|
|
|
TResult Function() $default, {
|
|
|
|
|
required TResult Function() loading,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading) loaded,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)
|
|
|
|
|
loaded,
|
|
|
|
|
required TResult Function(String errorMessage) error,
|
|
|
|
|
}) =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
|
|
|
TResult? Function()? $default, {
|
|
|
|
|
TResult? Function()? loading,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult? Function(String errorMessage)? error,
|
|
|
|
|
}) =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
@@ -37,7 +40,9 @@ mixin _$ChatRoomState {
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
|
|
|
TResult Function()? $default, {
|
|
|
|
|
TResult Function()? loading,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult Function(String errorMessage)? error,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) =>
|
|
|
|
|
@@ -71,28 +76,36 @@ mixin _$ChatRoomState {
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $ChatRoomStateCopyWith<$Res> {
|
|
|
|
|
factory $ChatRoomStateCopyWith(ChatRoomState value, $Res Function(ChatRoomState) then) = _$ChatRoomStateCopyWithImpl<$Res, ChatRoomState>;
|
|
|
|
|
factory $ChatRoomStateCopyWith(
|
|
|
|
|
ChatRoomState value, $Res Function(ChatRoomState) then) =
|
|
|
|
|
_$ChatRoomStateCopyWithImpl<$Res, ChatRoomState>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$ChatRoomStateCopyWithImpl<$Res, $Val extends ChatRoomState> implements $ChatRoomStateCopyWith<$Res> {
|
|
|
|
|
class _$ChatRoomStateCopyWithImpl<$Res, $Val extends ChatRoomState>
|
|
|
|
|
implements $ChatRoomStateCopyWith<$Res> {
|
|
|
|
|
_$ChatRoomStateCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ChatRoomStateImplCopyWith<$Res> {
|
|
|
|
|
factory _$$ChatRoomStateImplCopyWith(_$ChatRoomStateImpl value, $Res Function(_$ChatRoomStateImpl) then) = __$$ChatRoomStateImplCopyWithImpl<$Res>;
|
|
|
|
|
factory _$$ChatRoomStateImplCopyWith(
|
|
|
|
|
_$ChatRoomStateImpl value, $Res Function(_$ChatRoomStateImpl) then) =
|
|
|
|
|
__$$ChatRoomStateImplCopyWithImpl<$Res>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$ChatRoomStateImplCopyWithImpl<$Res> extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateImpl> implements _$$ChatRoomStateImplCopyWith<$Res> {
|
|
|
|
|
__$$ChatRoomStateImplCopyWithImpl(_$ChatRoomStateImpl _value, $Res Function(_$ChatRoomStateImpl) _then) : super(_value, _then);
|
|
|
|
|
class __$$ChatRoomStateImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateImpl>
|
|
|
|
|
implements _$$ChatRoomStateImplCopyWith<$Res> {
|
|
|
|
|
__$$ChatRoomStateImplCopyWithImpl(
|
|
|
|
|
_$ChatRoomStateImpl _value, $Res Function(_$ChatRoomStateImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@@ -107,7 +120,8 @@ class _$ChatRoomStateImpl implements _ChatRoomState {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChatRoomStateImpl);
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType && other is _$ChatRoomStateImpl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@@ -118,7 +132,9 @@ class _$ChatRoomStateImpl implements _ChatRoomState {
|
|
|
|
|
TResult when<TResult extends Object?>(
|
|
|
|
|
TResult Function() $default, {
|
|
|
|
|
required TResult Function() loading,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading) loaded,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)
|
|
|
|
|
loaded,
|
|
|
|
|
required TResult Function(String errorMessage) error,
|
|
|
|
|
}) {
|
|
|
|
|
return $default();
|
|
|
|
|
@@ -129,7 +145,9 @@ class _$ChatRoomStateImpl implements _ChatRoomState {
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
|
|
|
TResult? Function()? $default, {
|
|
|
|
|
TResult? Function()? loading,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult? Function(String errorMessage)? error,
|
|
|
|
|
}) {
|
|
|
|
|
return $default?.call();
|
|
|
|
|
@@ -140,7 +158,9 @@ class _$ChatRoomStateImpl implements _ChatRoomState {
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
|
|
|
TResult Function()? $default, {
|
|
|
|
|
TResult Function()? loading,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult Function(String errorMessage)? error,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
@@ -194,14 +214,18 @@ abstract class _ChatRoomState implements ChatRoomState {
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ChatRoomStateLoadingImplCopyWith<$Res> {
|
|
|
|
|
factory _$$ChatRoomStateLoadingImplCopyWith(_$ChatRoomStateLoadingImpl value, $Res Function(_$ChatRoomStateLoadingImpl) then) =
|
|
|
|
|
factory _$$ChatRoomStateLoadingImplCopyWith(_$ChatRoomStateLoadingImpl value,
|
|
|
|
|
$Res Function(_$ChatRoomStateLoadingImpl) then) =
|
|
|
|
|
__$$ChatRoomStateLoadingImplCopyWithImpl<$Res>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$ChatRoomStateLoadingImplCopyWithImpl<$Res> extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateLoadingImpl>
|
|
|
|
|
class __$$ChatRoomStateLoadingImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateLoadingImpl>
|
|
|
|
|
implements _$$ChatRoomStateLoadingImplCopyWith<$Res> {
|
|
|
|
|
__$$ChatRoomStateLoadingImplCopyWithImpl(_$ChatRoomStateLoadingImpl _value, $Res Function(_$ChatRoomStateLoadingImpl) _then) : super(_value, _then);
|
|
|
|
|
__$$ChatRoomStateLoadingImplCopyWithImpl(_$ChatRoomStateLoadingImpl _value,
|
|
|
|
|
$Res Function(_$ChatRoomStateLoadingImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@@ -216,7 +240,9 @@ class _$ChatRoomStateLoadingImpl implements ChatRoomStateLoading {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChatRoomStateLoadingImpl);
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$ChatRoomStateLoadingImpl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@@ -227,7 +253,9 @@ class _$ChatRoomStateLoadingImpl implements ChatRoomStateLoading {
|
|
|
|
|
TResult when<TResult extends Object?>(
|
|
|
|
|
TResult Function() $default, {
|
|
|
|
|
required TResult Function() loading,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading) loaded,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)
|
|
|
|
|
loaded,
|
|
|
|
|
required TResult Function(String errorMessage) error,
|
|
|
|
|
}) {
|
|
|
|
|
return loading();
|
|
|
|
|
@@ -238,7 +266,9 @@ class _$ChatRoomStateLoadingImpl implements ChatRoomStateLoading {
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
|
|
|
TResult? Function()? $default, {
|
|
|
|
|
TResult? Function()? loading,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult? Function(String errorMessage)? error,
|
|
|
|
|
}) {
|
|
|
|
|
return loading?.call();
|
|
|
|
|
@@ -249,7 +279,9 @@ class _$ChatRoomStateLoadingImpl implements ChatRoomStateLoading {
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
|
|
|
TResult Function()? $default, {
|
|
|
|
|
TResult Function()? loading,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult Function(String errorMessage)? error,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
@@ -303,19 +335,26 @@ abstract class ChatRoomStateLoading implements ChatRoomState {
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ChatRoomStateLoadedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$ChatRoomStateLoadedImplCopyWith(_$ChatRoomStateLoadedImpl value, $Res Function(_$ChatRoomStateLoadedImpl) then) =
|
|
|
|
|
factory _$$ChatRoomStateLoadedImplCopyWith(_$ChatRoomStateLoadedImpl value,
|
|
|
|
|
$Res Function(_$ChatRoomStateLoadedImpl) then) =
|
|
|
|
|
__$$ChatRoomStateLoadedImplCopyWithImpl<$Res>;
|
|
|
|
|
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading});
|
|
|
|
|
$Res call(
|
|
|
|
|
{ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages,
|
|
|
|
|
bool isTyping,
|
|
|
|
|
bool isLoading});
|
|
|
|
|
|
|
|
|
|
$ChatRoomModelCopyWith<$Res> get chatRoom;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$ChatRoomStateLoadedImplCopyWithImpl<$Res> extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateLoadedImpl>
|
|
|
|
|
class __$$ChatRoomStateLoadedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateLoadedImpl>
|
|
|
|
|
implements _$$ChatRoomStateLoadedImplCopyWith<$Res> {
|
|
|
|
|
__$$ChatRoomStateLoadedImplCopyWithImpl(_$ChatRoomStateLoadedImpl _value, $Res Function(_$ChatRoomStateLoadedImpl) _then) : super(_value, _then);
|
|
|
|
|
__$$ChatRoomStateLoadedImplCopyWithImpl(_$ChatRoomStateLoadedImpl _value,
|
|
|
|
|
$Res Function(_$ChatRoomStateLoadedImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
@@ -357,13 +396,16 @@ class __$$ChatRoomStateLoadedImplCopyWithImpl<$Res> extends _$ChatRoomStateCopyW
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$ChatRoomStateLoadedImpl implements ChatRoomStateLoaded {
|
|
|
|
|
const _$ChatRoomStateLoadedImpl({required this.chatRoom, required final List<ChatMessageModel> chatMessages, required this.isTyping, required this.isLoading})
|
|
|
|
|
const _$ChatRoomStateLoadedImpl(
|
|
|
|
|
{required this.chatRoom,
|
|
|
|
|
required final List<ChatMessageModel> chatMessages,
|
|
|
|
|
required this.isTyping,
|
|
|
|
|
required this.isLoading})
|
|
|
|
|
: _chatMessages = chatMessages;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final ChatRoomModel chatRoom;
|
|
|
|
|
final List<ChatMessageModel> _chatMessages;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
List<ChatMessageModel> get chatMessages {
|
|
|
|
|
if (_chatMessages is EqualUnmodifiableListView) return _chatMessages;
|
|
|
|
|
@@ -386,27 +428,35 @@ class _$ChatRoomStateLoadedImpl implements ChatRoomStateLoaded {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$ChatRoomStateLoadedImpl &&
|
|
|
|
|
(identical(other.chatRoom, chatRoom) || other.chatRoom == chatRoom) &&
|
|
|
|
|
const DeepCollectionEquality().equals(other._chatMessages, _chatMessages) &&
|
|
|
|
|
(identical(other.isTyping, isTyping) || other.isTyping == isTyping) &&
|
|
|
|
|
(identical(other.isLoading, isLoading) || other.isLoading == isLoading));
|
|
|
|
|
(identical(other.chatRoom, chatRoom) ||
|
|
|
|
|
other.chatRoom == chatRoom) &&
|
|
|
|
|
const DeepCollectionEquality()
|
|
|
|
|
.equals(other._chatMessages, _chatMessages) &&
|
|
|
|
|
(identical(other.isTyping, isTyping) ||
|
|
|
|
|
other.isTyping == isTyping) &&
|
|
|
|
|
(identical(other.isLoading, isLoading) ||
|
|
|
|
|
other.isLoading == isLoading));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, chatRoom, const DeepCollectionEquality().hash(_chatMessages), isTyping, isLoading);
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, chatRoom,
|
|
|
|
|
const DeepCollectionEquality().hash(_chatMessages), isTyping, isLoading);
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$ChatRoomStateLoadedImplCopyWith<_$ChatRoomStateLoadedImpl> get copyWith =>
|
|
|
|
|
__$$ChatRoomStateLoadedImplCopyWithImpl<_$ChatRoomStateLoadedImpl>(this, _$identity);
|
|
|
|
|
__$$ChatRoomStateLoadedImplCopyWithImpl<_$ChatRoomStateLoadedImpl>(
|
|
|
|
|
this, _$identity);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>(
|
|
|
|
|
TResult Function() $default, {
|
|
|
|
|
required TResult Function() loading,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading) loaded,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)
|
|
|
|
|
loaded,
|
|
|
|
|
required TResult Function(String errorMessage) error,
|
|
|
|
|
}) {
|
|
|
|
|
return loaded(chatRoom, chatMessages, isTyping, isLoading);
|
|
|
|
|
@@ -417,7 +467,9 @@ class _$ChatRoomStateLoadedImpl implements ChatRoomStateLoaded {
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
|
|
|
TResult? Function()? $default, {
|
|
|
|
|
TResult? Function()? loading,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult? Function(String errorMessage)? error,
|
|
|
|
|
}) {
|
|
|
|
|
return loaded?.call(chatRoom, chatMessages, isTyping, isLoading);
|
|
|
|
|
@@ -428,7 +480,9 @@ class _$ChatRoomStateLoadedImpl implements ChatRoomStateLoaded {
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
|
|
|
TResult Function()? $default, {
|
|
|
|
|
TResult Function()? loading,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult Function(String errorMessage)? error,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
@@ -484,30 +538,30 @@ abstract class ChatRoomStateLoaded implements ChatRoomState {
|
|
|
|
|
required final bool isLoading}) = _$ChatRoomStateLoadedImpl;
|
|
|
|
|
|
|
|
|
|
ChatRoomModel get chatRoom;
|
|
|
|
|
|
|
|
|
|
List<ChatMessageModel> get chatMessages;
|
|
|
|
|
|
|
|
|
|
bool get isTyping;
|
|
|
|
|
|
|
|
|
|
bool get isLoading;
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
_$$ChatRoomStateLoadedImplCopyWith<_$ChatRoomStateLoadedImpl> get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
_$$ChatRoomStateLoadedImplCopyWith<_$ChatRoomStateLoadedImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ChatRoomStateErrorImplCopyWith<$Res> {
|
|
|
|
|
factory _$$ChatRoomStateErrorImplCopyWith(_$ChatRoomStateErrorImpl value, $Res Function(_$ChatRoomStateErrorImpl) then) =
|
|
|
|
|
factory _$$ChatRoomStateErrorImplCopyWith(_$ChatRoomStateErrorImpl value,
|
|
|
|
|
$Res Function(_$ChatRoomStateErrorImpl) then) =
|
|
|
|
|
__$$ChatRoomStateErrorImplCopyWithImpl<$Res>;
|
|
|
|
|
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({String errorMessage});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$ChatRoomStateErrorImplCopyWithImpl<$Res> extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateErrorImpl>
|
|
|
|
|
class __$$ChatRoomStateErrorImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$ChatRoomStateCopyWithImpl<$Res, _$ChatRoomStateErrorImpl>
|
|
|
|
|
implements _$$ChatRoomStateErrorImplCopyWith<$Res> {
|
|
|
|
|
__$$ChatRoomStateErrorImplCopyWithImpl(_$ChatRoomStateErrorImpl _value, $Res Function(_$ChatRoomStateErrorImpl) _then) : super(_value, _then);
|
|
|
|
|
__$$ChatRoomStateErrorImplCopyWithImpl(_$ChatRoomStateErrorImpl _value,
|
|
|
|
|
$Res Function(_$ChatRoomStateErrorImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
@@ -541,7 +595,8 @@ class _$ChatRoomStateErrorImpl implements ChatRoomStateError {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$ChatRoomStateErrorImpl &&
|
|
|
|
|
(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
|
|
|
|
(identical(other.errorMessage, errorMessage) ||
|
|
|
|
|
other.errorMessage == errorMessage));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@@ -551,14 +606,17 @@ class _$ChatRoomStateErrorImpl implements ChatRoomStateError {
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$ChatRoomStateErrorImplCopyWith<_$ChatRoomStateErrorImpl> get copyWith =>
|
|
|
|
|
__$$ChatRoomStateErrorImplCopyWithImpl<_$ChatRoomStateErrorImpl>(this, _$identity);
|
|
|
|
|
__$$ChatRoomStateErrorImplCopyWithImpl<_$ChatRoomStateErrorImpl>(
|
|
|
|
|
this, _$identity);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>(
|
|
|
|
|
TResult Function() $default, {
|
|
|
|
|
required TResult Function() loading,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading) loaded,
|
|
|
|
|
required TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)
|
|
|
|
|
loaded,
|
|
|
|
|
required TResult Function(String errorMessage) error,
|
|
|
|
|
}) {
|
|
|
|
|
return error(errorMessage);
|
|
|
|
|
@@ -569,7 +627,9 @@ class _$ChatRoomStateErrorImpl implements ChatRoomStateError {
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>(
|
|
|
|
|
TResult? Function()? $default, {
|
|
|
|
|
TResult? Function()? loading,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult? Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult? Function(String errorMessage)? error,
|
|
|
|
|
}) {
|
|
|
|
|
return error?.call(errorMessage);
|
|
|
|
|
@@ -580,7 +640,9 @@ class _$ChatRoomStateErrorImpl implements ChatRoomStateError {
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>(
|
|
|
|
|
TResult Function()? $default, {
|
|
|
|
|
TResult Function()? loading,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom, List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)? loaded,
|
|
|
|
|
TResult Function(ChatRoomModel chatRoom,
|
|
|
|
|
List<ChatMessageModel> chatMessages, bool isTyping, bool isLoading)?
|
|
|
|
|
loaded,
|
|
|
|
|
TResult Function(String errorMessage)? error,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
@@ -629,10 +691,11 @@ class _$ChatRoomStateErrorImpl implements ChatRoomStateError {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class ChatRoomStateError implements ChatRoomState {
|
|
|
|
|
const factory ChatRoomStateError({required final String errorMessage}) = _$ChatRoomStateErrorImpl;
|
|
|
|
|
const factory ChatRoomStateError({required final String errorMessage}) =
|
|
|
|
|
_$ChatRoomStateErrorImpl;
|
|
|
|
|
|
|
|
|
|
String get errorMessage;
|
|
|
|
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
|
|
|
_$$ChatRoomStateErrorImplCopyWith<_$ChatRoomStateErrorImpl> get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
_$$ChatRoomStateErrorImplCopyWith<_$ChatRoomStateErrorImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|