chat has been updated

This commit is contained in:
Username1548
2025-03-18 14:33:51 +07:00
parent b6d4911c2e
commit fa817548d9
140 changed files with 16501 additions and 14065 deletions

View File

@@ -12,7 +12,8 @@ part of 'comments_state.dart';
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');
'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
mixin _$CommentsState {
@@ -22,16 +23,14 @@ mixin _$CommentsState {
required TResult Function() loading,
required TResult Function(CommentModel comment, int? replyId) loaded,
required TResult Function(String errorMessage) error,
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
TResult? Function()? $default, {
TResult? Function()? loading,
TResult? Function(CommentModel comment, int? replyId)? loaded,
TResult? Function(String errorMessage)? error,
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$CommentsState {
TResult Function(CommentModel comment, int? replyId)? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>(
TResult Function(_CommentsState value) $default, {
required TResult Function(CommentsStateLoading value) loading,
required TResult Function(CommentsStateLoaded value) loaded,
required TResult Function(CommentsStateError value) error,
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
TResult? Function(_CommentsState value)? $default, {
TResult? Function(CommentsStateLoading value)? loading,
TResult? Function(CommentsStateLoaded value)? loaded,
TResult? Function(CommentsStateError value)? error,
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
TResult Function(_CommentsState value)? $default, {
@@ -64,15 +60,15 @@ mixin _$CommentsState {
TResult Function(CommentsStateLoaded value)? loaded,
TResult Function(CommentsStateError value)? error,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CommentsStateCopyWith<$Res> {
factory $CommentsStateCopyWith(
CommentsState value, $Res Function(CommentsState) then) =
_$CommentsStateCopyWithImpl<$Res, CommentsState>;
CommentsState value,
$Res Function(CommentsState) then,
) = _$CommentsStateCopyWithImpl<$Res, CommentsState>;
}
/// @nodoc
@@ -92,8 +88,9 @@ class _$CommentsStateCopyWithImpl<$Res, $Val extends CommentsState>
/// @nodoc
abstract class _$$CommentsStateImplCopyWith<$Res> {
factory _$$CommentsStateImplCopyWith(
_$CommentsStateImpl value, $Res Function(_$CommentsStateImpl) then) =
__$$CommentsStateImplCopyWithImpl<$Res>;
_$CommentsStateImpl value,
$Res Function(_$CommentsStateImpl) then,
) = __$$CommentsStateImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -101,8 +98,9 @@ class __$$CommentsStateImplCopyWithImpl<$Res>
extends _$CommentsStateCopyWithImpl<$Res, _$CommentsStateImpl>
implements _$$CommentsStateImplCopyWith<$Res> {
__$$CommentsStateImplCopyWithImpl(
_$CommentsStateImpl _value, $Res Function(_$CommentsStateImpl) _then)
: super(_value, _then);
_$CommentsStateImpl _value,
$Res Function(_$CommentsStateImpl) _then,
) : super(_value, _then);
/// Create a copy of CommentsState
/// with the given fields replaced by the non-null parameter values.
@@ -208,18 +206,20 @@ abstract class _CommentsState implements CommentsState {
/// @nodoc
abstract class _$$CommentsStateLoadingImplCopyWith<$Res> {
factory _$$CommentsStateLoadingImplCopyWith(_$CommentsStateLoadingImpl value,
$Res Function(_$CommentsStateLoadingImpl) then) =
__$$CommentsStateLoadingImplCopyWithImpl<$Res>;
factory _$$CommentsStateLoadingImplCopyWith(
_$CommentsStateLoadingImpl value,
$Res Function(_$CommentsStateLoadingImpl) then,
) = __$$CommentsStateLoadingImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$CommentsStateLoadingImplCopyWithImpl<$Res>
extends _$CommentsStateCopyWithImpl<$Res, _$CommentsStateLoadingImpl>
implements _$$CommentsStateLoadingImplCopyWith<$Res> {
__$$CommentsStateLoadingImplCopyWithImpl(_$CommentsStateLoadingImpl _value,
$Res Function(_$CommentsStateLoadingImpl) _then)
: super(_value, _then);
__$$CommentsStateLoadingImplCopyWithImpl(
_$CommentsStateLoadingImpl _value,
$Res Function(_$CommentsStateLoadingImpl) _then,
) : super(_value, _then);
/// Create a copy of CommentsState
/// with the given fields replaced by the non-null parameter values.
@@ -326,9 +326,10 @@ abstract class CommentsStateLoading implements CommentsState {
/// @nodoc
abstract class _$$CommentsStateLoadedImplCopyWith<$Res> {
factory _$$CommentsStateLoadedImplCopyWith(_$CommentsStateLoadedImpl value,
$Res Function(_$CommentsStateLoadedImpl) then) =
__$$CommentsStateLoadedImplCopyWithImpl<$Res>;
factory _$$CommentsStateLoadedImplCopyWith(
_$CommentsStateLoadedImpl value,
$Res Function(_$CommentsStateLoadedImpl) then,
) = __$$CommentsStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({CommentModel comment, int? replyId});
@@ -339,28 +340,30 @@ abstract class _$$CommentsStateLoadedImplCopyWith<$Res> {
class __$$CommentsStateLoadedImplCopyWithImpl<$Res>
extends _$CommentsStateCopyWithImpl<$Res, _$CommentsStateLoadedImpl>
implements _$$CommentsStateLoadedImplCopyWith<$Res> {
__$$CommentsStateLoadedImplCopyWithImpl(_$CommentsStateLoadedImpl _value,
$Res Function(_$CommentsStateLoadedImpl) _then)
: super(_value, _then);
__$$CommentsStateLoadedImplCopyWithImpl(
_$CommentsStateLoadedImpl _value,
$Res Function(_$CommentsStateLoadedImpl) _then,
) : super(_value, _then);
/// Create a copy of CommentsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? comment = null,
Object? replyId = freezed,
}) {
return _then(_$CommentsStateLoadedImpl(
comment: null == comment
? _value.comment
: comment // ignore: cast_nullable_to_non_nullable
as CommentModel,
replyId: freezed == replyId
? _value.replyId
: replyId // ignore: cast_nullable_to_non_nullable
as int?,
));
$Res call({Object? comment = null, Object? replyId = freezed}) {
return _then(
_$CommentsStateLoadedImpl(
comment:
null == comment
? _value.comment
: comment // ignore: cast_nullable_to_non_nullable
as CommentModel,
replyId:
freezed == replyId
? _value.replyId
: replyId // ignore: cast_nullable_to_non_nullable
as int?,
),
);
}
/// Create a copy of CommentsState
@@ -408,7 +411,9 @@ class _$CommentsStateLoadedImpl implements CommentsStateLoaded {
@pragma('vm:prefer-inline')
_$$CommentsStateLoadedImplCopyWith<_$CommentsStateLoadedImpl> get copyWith =>
__$$CommentsStateLoadedImplCopyWithImpl<_$CommentsStateLoadedImpl>(
this, _$identity);
this,
_$identity,
);
@override
@optionalTypeArgs
@@ -486,9 +491,10 @@ class _$CommentsStateLoadedImpl implements CommentsStateLoaded {
}
abstract class CommentsStateLoaded implements CommentsState {
const factory CommentsStateLoaded(
{required final CommentModel comment,
final int? replyId}) = _$CommentsStateLoadedImpl;
const factory CommentsStateLoaded({
required final CommentModel comment,
final int? replyId,
}) = _$CommentsStateLoadedImpl;
CommentModel get comment;
int? get replyId;
@@ -502,9 +508,10 @@ abstract class CommentsStateLoaded implements CommentsState {
/// @nodoc
abstract class _$$CommentsStateErrorImplCopyWith<$Res> {
factory _$$CommentsStateErrorImplCopyWith(_$CommentsStateErrorImpl value,
$Res Function(_$CommentsStateErrorImpl) then) =
__$$CommentsStateErrorImplCopyWithImpl<$Res>;
factory _$$CommentsStateErrorImplCopyWith(
_$CommentsStateErrorImpl value,
$Res Function(_$CommentsStateErrorImpl) then,
) = __$$CommentsStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
@@ -513,23 +520,25 @@ abstract class _$$CommentsStateErrorImplCopyWith<$Res> {
class __$$CommentsStateErrorImplCopyWithImpl<$Res>
extends _$CommentsStateCopyWithImpl<$Res, _$CommentsStateErrorImpl>
implements _$$CommentsStateErrorImplCopyWith<$Res> {
__$$CommentsStateErrorImplCopyWithImpl(_$CommentsStateErrorImpl _value,
$Res Function(_$CommentsStateErrorImpl) _then)
: super(_value, _then);
__$$CommentsStateErrorImplCopyWithImpl(
_$CommentsStateErrorImpl _value,
$Res Function(_$CommentsStateErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of CommentsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? errorMessage = null,
}) {
return _then(_$CommentsStateErrorImpl(
errorMessage: null == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String,
));
$Res call({Object? errorMessage = null}) {
return _then(
_$CommentsStateErrorImpl(
errorMessage:
null == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String,
),
);
}
}
@@ -565,7 +574,9 @@ class _$CommentsStateErrorImpl implements CommentsStateError {
@pragma('vm:prefer-inline')
_$$CommentsStateErrorImplCopyWith<_$CommentsStateErrorImpl> get copyWith =>
__$$CommentsStateErrorImplCopyWithImpl<_$CommentsStateErrorImpl>(
this, _$identity);
this,
_$identity,
);
@override
@optionalTypeArgs