Skip to content

Commit

Permalink
[Feat] notifier build (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Nov 9, 2024
1 parent dd7047d commit 3440440
Show file tree
Hide file tree
Showing 46 changed files with 860 additions and 220 deletions.
21 changes: 17 additions & 4 deletions lib/model/diary/diary_check_model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ DiaryCheckModel _$DiaryCheckModelFromJson(Map<String, dynamic> json) {
mixin _$DiaryCheckModel {
bool get state => throw _privateConstructorUsedError;

/// Serializes this DiaryCheckModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of DiaryCheckModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$DiaryCheckModelCopyWith<DiaryCheckModel> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -47,6 +51,8 @@ class _$DiaryCheckModelCopyWithImpl<$Res, $Val extends DiaryCheckModel>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of DiaryCheckModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -80,6 +86,8 @@ class __$$DiaryCheckModelImplCopyWithImpl<$Res>
_$DiaryCheckModelImpl _value, $Res Function(_$DiaryCheckModelImpl) _then)
: super(_value, _then);

/// Create a copy of DiaryCheckModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -118,11 +126,13 @@ class _$DiaryCheckModelImpl implements _DiaryCheckModel {
(identical(other.state, state) || other.state == state));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, state);

@JsonKey(ignore: true)
/// Create a copy of DiaryCheckModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$DiaryCheckModelImplCopyWith<_$DiaryCheckModelImpl> get copyWith =>
Expand All @@ -146,8 +156,11 @@ abstract class _DiaryCheckModel implements DiaryCheckModel {

@override
bool get state;

/// Create a copy of DiaryCheckModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$DiaryCheckModelImplCopyWith<_$DiaryCheckModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
42 changes: 34 additions & 8 deletions lib/model/diary/diary_comment_model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ mixin _$DiaryDataModel {
int get commentCount => throw _privateConstructorUsedError;
bool get myLike => throw _privateConstructorUsedError;

/// Serializes this DiaryDataModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of DiaryDataModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$DiaryDataModelCopyWith<DiaryDataModel> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -55,6 +59,8 @@ class _$DiaryDataModelCopyWithImpl<$Res, $Val extends DiaryDataModel>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of DiaryDataModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -107,6 +113,8 @@ class __$$DiaryDataModelImplCopyWithImpl<$Res>
_$DiaryDataModelImpl _value, $Res Function(_$DiaryDataModelImpl) _then)
: super(_value, _then);

/// Create a copy of DiaryDataModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -184,7 +192,7 @@ class _$DiaryDataModelImpl implements _DiaryDataModel {
(identical(other.myLike, myLike) || other.myLike == myLike));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -193,7 +201,9 @@ class _$DiaryDataModelImpl implements _DiaryDataModel {
commentCount,
myLike);

@JsonKey(ignore: true)
/// Create a copy of DiaryDataModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$DiaryDataModelImplCopyWith<_$DiaryDataModelImpl> get copyWith =>
Expand Down Expand Up @@ -226,8 +236,11 @@ abstract class _DiaryDataModel implements DiaryDataModel {
int get commentCount;
@override
bool get myLike;

/// Create a copy of DiaryDataModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$DiaryDataModelImplCopyWith<_$DiaryDataModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -245,8 +258,12 @@ mixin _$DiaryCommentModel {
String? get profileImage => throw _privateConstructorUsedError;
int get commentId => throw _privateConstructorUsedError;

/// Serializes this DiaryCommentModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of DiaryCommentModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$DiaryCommentModelCopyWith<DiaryCommentModel> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -276,6 +293,8 @@ class _$DiaryCommentModelCopyWithImpl<$Res, $Val extends DiaryCommentModel>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of DiaryCommentModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -340,6 +359,8 @@ class __$$DiaryCommentModelImplCopyWithImpl<$Res>
$Res Function(_$DiaryCommentModelImpl) _then)
: super(_value, _then);

/// Create a copy of DiaryCommentModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -428,12 +449,14 @@ class _$DiaryCommentModelImpl implements _DiaryCommentModel {
other.commentId == commentId));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, myComment, content, date, nickname, profileImage, commentId);

@JsonKey(ignore: true)
/// Create a copy of DiaryCommentModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$DiaryCommentModelImplCopyWith<_$DiaryCommentModelImpl> get copyWith =>
Expand Down Expand Up @@ -472,8 +495,11 @@ abstract class _DiaryCommentModel implements DiaryCommentModel {
String? get profileImage;
@override
int get commentId;

/// Create a copy of DiaryCommentModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$DiaryCommentModelImplCopyWith<_$DiaryCommentModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions lib/model/diary/farmclub_open_diary_model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ mixin _$FarmclubOpenDiaryModel {
bool get myDiary => throw _privateConstructorUsedError;
String get state => throw _privateConstructorUsedError;

/// Serializes this FarmclubOpenDiaryModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of FarmclubOpenDiaryModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FarmclubOpenDiaryModelCopyWith<FarmclubOpenDiaryModel> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -70,6 +74,8 @@ class _$FarmclubOpenDiaryModelCopyWithImpl<$Res,
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of FarmclubOpenDiaryModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -167,6 +173,8 @@ class __$$FarmclubOpenDiaryModelImplCopyWithImpl<$Res>
$Res Function(_$FarmclubOpenDiaryModelImpl) _then)
: super(_value, _then);

/// Create a copy of FarmclubOpenDiaryModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -303,7 +311,7 @@ class _$FarmclubOpenDiaryModelImpl implements _FarmclubOpenDiaryModel {
(identical(other.state, state) || other.state == state));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -319,7 +327,9 @@ class _$FarmclubOpenDiaryModelImpl implements _FarmclubOpenDiaryModel {
myDiary,
state);

@JsonKey(ignore: true)
/// Create a copy of FarmclubOpenDiaryModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$FarmclubOpenDiaryModelImplCopyWith<_$FarmclubOpenDiaryModelImpl>
Expand Down Expand Up @@ -373,8 +383,11 @@ abstract class _FarmclubOpenDiaryModel implements FarmclubOpenDiaryModel {
bool get myDiary;
@override
String get state;

/// Create a copy of FarmclubOpenDiaryModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$FarmclubOpenDiaryModelImplCopyWith<_$FarmclubOpenDiaryModelImpl>
get copyWith => throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions lib/model/diary/my_veggie_diary.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ mixin _$MyVeggieDiary {
int get commentCount => throw _privateConstructorUsedError;
bool get myLike => throw _privateConstructorUsedError;

/// Serializes this MyVeggieDiary to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of MyVeggieDiary
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$MyVeggieDiaryCopyWith<MyVeggieDiary> get copyWith =>
throw _privateConstructorUsedError;
}
Expand Down Expand Up @@ -64,6 +68,8 @@ class _$MyVeggieDiaryCopyWithImpl<$Res, $Val extends MyVeggieDiary>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of MyVeggieDiary
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -146,6 +152,8 @@ class __$$MyVeggieDiaryImplCopyWithImpl<$Res>
_$MyVeggieDiaryImpl _value, $Res Function(_$MyVeggieDiaryImpl) _then)
: super(_value, _then);

/// Create a copy of MyVeggieDiary
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -259,12 +267,14 @@ class _$MyVeggieDiaryImpl implements _MyVeggieDiary {
(identical(other.myLike, myLike) || other.myLike == myLike));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, date, image, content, state,
isOpen, diaryId, likeCount, commentCount, myLike);

@JsonKey(ignore: true)
/// Create a copy of MyVeggieDiary
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$MyVeggieDiaryImplCopyWith<_$MyVeggieDiaryImpl> get copyWith =>
Expand Down Expand Up @@ -311,8 +321,11 @@ abstract class _MyVeggieDiary implements MyVeggieDiary {
int get commentCount;
@override
bool get myLike;

/// Create a copy of MyVeggieDiary
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$MyVeggieDiaryImplCopyWith<_$MyVeggieDiaryImpl> get copyWith =>
throw _privateConstructorUsedError;
}
21 changes: 17 additions & 4 deletions lib/model/farmclub_open/farmclub_my_vege_model.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ mixin _$FarmclubMyVegeModel {
String get veggieInfoId => throw _privateConstructorUsedError;
String get nickname => throw _privateConstructorUsedError;

/// Serializes this FarmclubMyVegeModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)

/// Create a copy of FarmclubMyVegeModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FarmclubMyVegeModelCopyWith<FarmclubMyVegeModel> get copyWith =>
throw _privateConstructorUsedError;
}
Expand All @@ -49,6 +53,8 @@ class _$FarmclubMyVegeModelCopyWithImpl<$Res, $Val extends FarmclubMyVegeModel>
// ignore: unused_field
final $Res Function($Val) _then;

/// Create a copy of FarmclubMyVegeModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -92,6 +98,8 @@ class __$$FarmclubMyVegeModelImplCopyWithImpl<$Res>
$Res Function(_$FarmclubMyVegeModelImpl) _then)
: super(_value, _then);

/// Create a copy of FarmclubMyVegeModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Expand Down Expand Up @@ -152,12 +160,14 @@ class _$FarmclubMyVegeModelImpl implements _FarmclubMyVegeModel {
other.nickname == nickname));
}

@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, myVeggieId, veggieInfoId, nickname);

@JsonKey(ignore: true)
/// Create a copy of FarmclubMyVegeModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$FarmclubMyVegeModelImplCopyWith<_$FarmclubMyVegeModelImpl> get copyWith =>
Expand Down Expand Up @@ -187,8 +197,11 @@ abstract class _FarmclubMyVegeModel implements FarmclubMyVegeModel {
String get veggieInfoId;
@override
String get nickname;

/// Create a copy of FarmclubMyVegeModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(ignore: true)
@JsonKey(includeFromJson: false, includeToJson: false)
_$$FarmclubMyVegeModelImplCopyWith<_$FarmclubMyVegeModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
Loading

0 comments on commit 3440440

Please sign in to comment.