diff --git a/.metadata b/.metadata
index aa90aa80..5d420ae5 100644
--- a/.metadata
+++ b/.metadata
@@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.
version:
- revision: "ba393198430278b6595976de84fe170f553cc728"
+ revision: "09de023485e95e6d1225c2baa44b8feb85e0d45f"
channel: "stable"
project_type: app
@@ -13,26 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
- - platform: android
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
+ create_revision: 09de023485e95e6d1225c2baa44b8feb85e0d45f
+ base_revision: 09de023485e95e6d1225c2baa44b8feb85e0d45f
- platform: ios
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
- - platform: linux
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
- - platform: macos
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
- - platform: web
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
- - platform: windows
- create_revision: ba393198430278b6595976de84fe170f553cc728
- base_revision: ba393198430278b6595976de84fe170f553cc728
+ create_revision: 09de023485e95e6d1225c2baa44b8feb85e0d45f
+ base_revision: 09de023485e95e6d1225c2baa44b8feb85e0d45f
# User provided section
diff --git a/assets/icons/add_card.svg b/assets/icons/add_card.svg
new file mode 100644
index 00000000..4acb17cd
--- /dev/null
+++ b/assets/icons/add_card.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/card.svg b/assets/icons/card.svg
new file mode 100644
index 00000000..38c03089
--- /dev/null
+++ b/assets/icons/card.svg
@@ -0,0 +1,5 @@
+
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..797d452e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/lib/core/app_router.dart b/lib/core/app_router.dart
index 6791b620..79228258 100644
--- a/lib/core/app_router.dart
+++ b/lib/core/app_router.dart
@@ -117,9 +117,21 @@ class AppRouter {
),
],
),
- GoRoute(path: '/consultant-finance-screen', name: 'consultantFinanceScreen', builder: (context, state) => ConsultantFinanceScreen()),
- GoRoute(path: '/user-finance-screen', name: 'userFinanceScreen', builder: (context, state) => UserFinanceScreen()),
- GoRoute(path: '/card-settings-screen', name: 'cardSettingsScreen', builder: (context, state) => CardSettingsScreen()),
+ GoRoute(
+ path: '/consultant-finance-screen',
+ name: 'consultantFinanceScreen',
+ builder: (context, state) => ConsultantFinanceScreen(),
+ ),
+ GoRoute(
+ path: '/user-finance-screen',
+ name: 'userFinanceScreen',
+ builder: (context, state) => UserFinanceScreen(),
+ ),
+ GoRoute(
+ path: CardSettingsScreen.path,
+ name: CardSettingsScreen.name,
+ builder: (context, state) => CardSettingsScreen(),
+ ),
GoRoute(
path: '/about-plan-screen',
name: 'aboutPlanScreen',
diff --git a/lib/core/data/selectionPopupModel/selection_popup_model.freezed.dart b/lib/core/data/selectionPopupModel/selection_popup_model.freezed.dart
index 97ab368c..5270e0b2 100644
--- a/lib/core/data/selectionPopupModel/selection_popup_model.freezed.dart
+++ b/lib/core/data/selectionPopupModel/selection_popup_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'selection_popup_model.dart';
T _$identity(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 _$SelectionPopupModel {
@@ -31,8 +32,9 @@ mixin _$SelectionPopupModel {
/// @nodoc
abstract class $SelectionPopupModelCopyWith<$Res> {
factory $SelectionPopupModelCopyWith(
- SelectionPopupModel value, $Res Function(SelectionPopupModel) then) =
- _$SelectionPopupModelCopyWithImpl<$Res, SelectionPopupModel>;
+ SelectionPopupModel value,
+ $Res Function(SelectionPopupModel) then,
+ ) = _$SelectionPopupModelCopyWithImpl<$Res, SelectionPopupModel>;
@useResult
$Res call({int? id, String title, dynamic value, bool isSelected});
}
@@ -57,33 +59,41 @@ class _$SelectionPopupModelCopyWithImpl<$Res, $Val extends SelectionPopupModel>
Object? value = freezed,
Object? isSelected = null,
}) {
- return _then(_value.copyWith(
- id: freezed == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int?,
- title: null == title
- ? _value.title
- : title // ignore: cast_nullable_to_non_nullable
- as String,
- value: freezed == value
- ? _value.value
- : value // ignore: cast_nullable_to_non_nullable
- as dynamic,
- isSelected: null == isSelected
- ? _value.isSelected
- : isSelected // ignore: cast_nullable_to_non_nullable
- as bool,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ id:
+ freezed == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as int?,
+ title:
+ null == title
+ ? _value.title
+ : title // ignore: cast_nullable_to_non_nullable
+ as String,
+ value:
+ freezed == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ isSelected:
+ null == isSelected
+ ? _value.isSelected
+ : isSelected // ignore: cast_nullable_to_non_nullable
+ as bool,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$SelectionPopupModelImplCopyWith<$Res>
implements $SelectionPopupModelCopyWith<$Res> {
- factory _$$SelectionPopupModelImplCopyWith(_$SelectionPopupModelImpl value,
- $Res Function(_$SelectionPopupModelImpl) then) =
- __$$SelectionPopupModelImplCopyWithImpl<$Res>;
+ factory _$$SelectionPopupModelImplCopyWith(
+ _$SelectionPopupModelImpl value,
+ $Res Function(_$SelectionPopupModelImpl) then,
+ ) = __$$SelectionPopupModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({int? id, String title, dynamic value, bool isSelected});
@@ -93,9 +103,10 @@ abstract class _$$SelectionPopupModelImplCopyWith<$Res>
class __$$SelectionPopupModelImplCopyWithImpl<$Res>
extends _$SelectionPopupModelCopyWithImpl<$Res, _$SelectionPopupModelImpl>
implements _$$SelectionPopupModelImplCopyWith<$Res> {
- __$$SelectionPopupModelImplCopyWithImpl(_$SelectionPopupModelImpl _value,
- $Res Function(_$SelectionPopupModelImpl) _then)
- : super(_value, _then);
+ __$$SelectionPopupModelImplCopyWithImpl(
+ _$SelectionPopupModelImpl _value,
+ $Res Function(_$SelectionPopupModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of SelectionPopupModel
/// with the given fields replaced by the non-null parameter values.
@@ -107,32 +118,42 @@ class __$$SelectionPopupModelImplCopyWithImpl<$Res>
Object? value = freezed,
Object? isSelected = null,
}) {
- return _then(_$SelectionPopupModelImpl(
- id: freezed == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int?,
- title: null == title
- ? _value.title
- : title // ignore: cast_nullable_to_non_nullable
- as String,
- value: freezed == value
- ? _value.value
- : value // ignore: cast_nullable_to_non_nullable
- as dynamic,
- isSelected: null == isSelected
- ? _value.isSelected
- : isSelected // ignore: cast_nullable_to_non_nullable
- as bool,
- ));
+ return _then(
+ _$SelectionPopupModelImpl(
+ id:
+ freezed == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as int?,
+ title:
+ null == title
+ ? _value.title
+ : title // ignore: cast_nullable_to_non_nullable
+ as String,
+ value:
+ freezed == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ isSelected:
+ null == isSelected
+ ? _value.isSelected
+ : isSelected // ignore: cast_nullable_to_non_nullable
+ as bool,
+ ),
+ );
}
}
/// @nodoc
class _$SelectionPopupModelImpl implements _SelectionPopupModel {
- const _$SelectionPopupModelImpl(
- {this.id, required this.title, this.value, this.isSelected = false});
+ const _$SelectionPopupModelImpl({
+ this.id,
+ required this.title,
+ this.value,
+ this.isSelected = false,
+ });
@override
final int? id;
@@ -162,8 +183,13 @@ class _$SelectionPopupModelImpl implements _SelectionPopupModel {
}
@override
- int get hashCode => Object.hash(runtimeType, id, title,
- const DeepCollectionEquality().hash(value), isSelected);
+ int get hashCode => Object.hash(
+ runtimeType,
+ id,
+ title,
+ const DeepCollectionEquality().hash(value),
+ isSelected,
+ );
/// Create a copy of SelectionPopupModel
/// with the given fields replaced by the non-null parameter values.
@@ -172,15 +198,18 @@ class _$SelectionPopupModelImpl implements _SelectionPopupModel {
@pragma('vm:prefer-inline')
_$$SelectionPopupModelImplCopyWith<_$SelectionPopupModelImpl> get copyWith =>
__$$SelectionPopupModelImplCopyWithImpl<_$SelectionPopupModelImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
}
abstract class _SelectionPopupModel implements SelectionPopupModel {
- const factory _SelectionPopupModel(
- {final int? id,
- required final String title,
- final dynamic value,
- final bool isSelected}) = _$SelectionPopupModelImpl;
+ const factory _SelectionPopupModel({
+ final int? id,
+ required final String title,
+ final dynamic value,
+ final bool isSelected,
+ }) = _$SelectionPopupModelImpl;
@override
int? get id;
diff --git a/lib/core/locator_service.dart b/lib/core/locator_service.dart
index 99846f1a..3a3f5342 100644
--- a/lib/core/locator_service.dart
+++ b/lib/core/locator_service.dart
@@ -49,6 +49,9 @@ import 'package:eatvio_app/features/feed/presentation/bloc/plans_cubit/plans_cub
import 'package:eatvio_app/features/my_diets/presentation/cubit/my_diets_cubit.dart';
import 'package:eatvio_app/features/my_diets/repositories/my_diets_repository.dart';
import 'package:eatvio_app/features/my_diets/services/my_diets_service.dart';
+import 'package:eatvio_app/features/my_finance/presentation/cubit/user_cards_cubit/user_cards_cubit.dart';
+import 'package:eatvio_app/features/my_finance/repositories/cards_repository.dart';
+import 'package:eatvio_app/features/my_finance/services/cards_service.dart';
import 'package:eatvio_app/features/my_plans/presentation/cubit/my_plans_cubit.dart';
import 'package:eatvio_app/features/my_plans/repositories/my_diets_repository.dart';
import 'package:eatvio_app/features/my_plans/services/my_plans_service.dart';
@@ -117,6 +120,7 @@ Future init() async {
sl.registerFactory(() => AboutRecipeCubit(recipeRepository: sl(), profileRepository: sl()));
sl.registerFactory(() => AuthCubit(authRepository: sl()));
sl.registerFactory(() => ComplainingCubit(repository: sl()));
+ sl.registerFactory(() => UserCardsCubit(cardsRepository: sl()));
// Repository
sl.registerLazySingleton(() => ChatRepository(chatService: sl()));
@@ -139,6 +143,7 @@ Future init() async {
sl.registerLazySingleton(() => AboutRecipeRepository(recipeService: sl()));
sl.registerLazySingleton(() => ComplainingRepository(service: sl()));
sl.registerLazySingleton(() => AuthRepository(authService: sl()));
+ sl.registerLazySingleton(() => CardsRepository(cardsService: sl()));
// Services
sl.registerLazySingleton(() => ChatService(sl()));
@@ -162,6 +167,7 @@ Future init() async {
sl.registerLazySingleton(() => AboutRecipeService(sl()));
sl.registerLazySingleton(() => ComplainingService(sl()));
sl.registerLazySingleton(() => AuthService(sl()));
+ sl.registerLazySingleton(() => CardsService(sl()));
// External
sl.registerLazySingleton(
diff --git a/lib/core/models/pagination_model.freezed.dart b/lib/core/models/pagination_model.freezed.dart
index 4d014abf..daeb8b5f 100644
--- a/lib/core/models/pagination_model.freezed.dart
+++ b/lib/core/models/pagination_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'pagination_model.dart';
T _$identity(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',
+);
Links _$LinksFromJson(Map json) {
return _Links.fromJson(json);
@@ -43,11 +44,12 @@ abstract class $LinksCopyWith<$Res> {
factory $LinksCopyWith(Links value, $Res Function(Links) then) =
_$LinksCopyWithImpl<$Res, Links>;
@useResult
- $Res call(
- {@JsonKey(name: "first") String first,
- @JsonKey(name: "last") String last,
- @JsonKey(name: "prev") dynamic prev,
- @JsonKey(name: "next") dynamic next});
+ $Res call({
+ @JsonKey(name: "first") String first,
+ @JsonKey(name: "last") String last,
+ @JsonKey(name: "prev") dynamic prev,
+ @JsonKey(name: "next") dynamic next,
+ });
}
/// @nodoc
@@ -70,39 +72,48 @@ class _$LinksCopyWithImpl<$Res, $Val extends Links>
Object? prev = freezed,
Object? next = freezed,
}) {
- return _then(_value.copyWith(
- first: null == first
- ? _value.first
- : first // ignore: cast_nullable_to_non_nullable
- as String,
- last: null == last
- ? _value.last
- : last // ignore: cast_nullable_to_non_nullable
- as String,
- prev: freezed == prev
- ? _value.prev
- : prev // ignore: cast_nullable_to_non_nullable
- as dynamic,
- next: freezed == next
- ? _value.next
- : next // ignore: cast_nullable_to_non_nullable
- as dynamic,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ first:
+ null == first
+ ? _value.first
+ : first // ignore: cast_nullable_to_non_nullable
+ as String,
+ last:
+ null == last
+ ? _value.last
+ : last // ignore: cast_nullable_to_non_nullable
+ as String,
+ prev:
+ freezed == prev
+ ? _value.prev
+ : prev // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ next:
+ freezed == next
+ ? _value.next
+ : next // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$LinksImplCopyWith<$Res> implements $LinksCopyWith<$Res> {
factory _$$LinksImplCopyWith(
- _$LinksImpl value, $Res Function(_$LinksImpl) then) =
- __$$LinksImplCopyWithImpl<$Res>;
+ _$LinksImpl value,
+ $Res Function(_$LinksImpl) then,
+ ) = __$$LinksImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "first") String first,
- @JsonKey(name: "last") String last,
- @JsonKey(name: "prev") dynamic prev,
- @JsonKey(name: "next") dynamic next});
+ $Res call({
+ @JsonKey(name: "first") String first,
+ @JsonKey(name: "last") String last,
+ @JsonKey(name: "prev") dynamic prev,
+ @JsonKey(name: "next") dynamic next,
+ });
}
/// @nodoc
@@ -110,8 +121,9 @@ class __$$LinksImplCopyWithImpl<$Res>
extends _$LinksCopyWithImpl<$Res, _$LinksImpl>
implements _$$LinksImplCopyWith<$Res> {
__$$LinksImplCopyWithImpl(
- _$LinksImpl _value, $Res Function(_$LinksImpl) _then)
- : super(_value, _then);
+ _$LinksImpl _value,
+ $Res Function(_$LinksImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of Links
/// with the given fields replaced by the non-null parameter values.
@@ -123,35 +135,42 @@ class __$$LinksImplCopyWithImpl<$Res>
Object? prev = freezed,
Object? next = freezed,
}) {
- return _then(_$LinksImpl(
- first: null == first
- ? _value.first
- : first // ignore: cast_nullable_to_non_nullable
- as String,
- last: null == last
- ? _value.last
- : last // ignore: cast_nullable_to_non_nullable
- as String,
- prev: freezed == prev
- ? _value.prev
- : prev // ignore: cast_nullable_to_non_nullable
- as dynamic,
- next: freezed == next
- ? _value.next
- : next // ignore: cast_nullable_to_non_nullable
- as dynamic,
- ));
+ return _then(
+ _$LinksImpl(
+ first:
+ null == first
+ ? _value.first
+ : first // ignore: cast_nullable_to_non_nullable
+ as String,
+ last:
+ null == last
+ ? _value.last
+ : last // ignore: cast_nullable_to_non_nullable
+ as String,
+ prev:
+ freezed == prev
+ ? _value.prev
+ : prev // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ next:
+ freezed == next
+ ? _value.next
+ : next // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$LinksImpl implements _Links {
- const _$LinksImpl(
- {@JsonKey(name: "first") required this.first,
- @JsonKey(name: "last") required this.last,
- @JsonKey(name: "prev") required this.prev,
- @JsonKey(name: "next") required this.next});
+ const _$LinksImpl({
+ @JsonKey(name: "first") required this.first,
+ @JsonKey(name: "last") required this.last,
+ @JsonKey(name: "prev") required this.prev,
+ @JsonKey(name: "next") required this.next,
+ });
factory _$LinksImpl.fromJson(Map json) =>
_$$LinksImplFromJson(json);
@@ -188,11 +207,12 @@ class _$LinksImpl implements _Links {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
- runtimeType,
- first,
- last,
- const DeepCollectionEquality().hash(prev),
- const DeepCollectionEquality().hash(next));
+ runtimeType,
+ first,
+ last,
+ const DeepCollectionEquality().hash(prev),
+ const DeepCollectionEquality().hash(next),
+ );
/// Create a copy of Links
/// with the given fields replaced by the non-null parameter values.
@@ -204,18 +224,17 @@ class _$LinksImpl implements _Links {
@override
Map toJson() {
- return _$$LinksImplToJson(
- this,
- );
+ return _$$LinksImplToJson(this);
}
}
abstract class _Links implements Links {
- const factory _Links(
- {@JsonKey(name: "first") required final String first,
- @JsonKey(name: "last") required final String last,
- @JsonKey(name: "prev") required final dynamic prev,
- @JsonKey(name: "next") required final dynamic next}) = _$LinksImpl;
+ const factory _Links({
+ @JsonKey(name: "first") required final String first,
+ @JsonKey(name: "last") required final String last,
+ @JsonKey(name: "prev") required final dynamic prev,
+ @JsonKey(name: "next") required final dynamic next,
+ }) = _$LinksImpl;
factory _Links.fromJson(Map json) = _$LinksImpl.fromJson;
@@ -281,17 +300,18 @@ abstract class $MetaCopyWith<$Res> {
factory $MetaCopyWith(Meta value, $Res Function(Meta) then) =
_$MetaCopyWithImpl<$Res, Meta>;
@useResult
- $Res call(
- {@JsonKey(name: "current_page") int currentPage,
- @JsonKey(name: "from") dynamic from,
- @JsonKey(name: "last_page") int lastPage,
- @JsonKey(name: "links") List links,
- @JsonKey(name: "path") String? path,
- @JsonKey(name: "per_page") int perPage,
- @JsonKey(name: "to") dynamic to,
- @JsonKey(name: "total") int total,
- @JsonKey(name: "total_min_price") int? totalMinPrice,
- @JsonKey(name: "total_max_price") int? totalMaxPrice});
+ $Res call({
+ @JsonKey(name: "current_page") int currentPage,
+ @JsonKey(name: "from") dynamic from,
+ @JsonKey(name: "last_page") int lastPage,
+ @JsonKey(name: "links") List links,
+ @JsonKey(name: "path") String? path,
+ @JsonKey(name: "per_page") int perPage,
+ @JsonKey(name: "to") dynamic to,
+ @JsonKey(name: "total") int total,
+ @JsonKey(name: "total_min_price") int? totalMinPrice,
+ @JsonKey(name: "total_max_price") int? totalMaxPrice,
+ });
}
/// @nodoc
@@ -320,69 +340,84 @@ class _$MetaCopyWithImpl<$Res, $Val extends Meta>
Object? totalMinPrice = freezed,
Object? totalMaxPrice = freezed,
}) {
- return _then(_value.copyWith(
- currentPage: null == currentPage
- ? _value.currentPage
- : currentPage // ignore: cast_nullable_to_non_nullable
- as int,
- from: freezed == from
- ? _value.from
- : from // ignore: cast_nullable_to_non_nullable
- as dynamic,
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- links: null == links
- ? _value.links
- : links // ignore: cast_nullable_to_non_nullable
- as List,
- path: freezed == path
- ? _value.path
- : path // ignore: cast_nullable_to_non_nullable
- as String?,
- perPage: null == perPage
- ? _value.perPage
- : perPage // ignore: cast_nullable_to_non_nullable
- as int,
- to: freezed == to
- ? _value.to
- : to // ignore: cast_nullable_to_non_nullable
- as dynamic,
- total: null == total
- ? _value.total
- : total // ignore: cast_nullable_to_non_nullable
- as int,
- totalMinPrice: freezed == totalMinPrice
- ? _value.totalMinPrice
- : totalMinPrice // ignore: cast_nullable_to_non_nullable
- as int?,
- totalMaxPrice: freezed == totalMaxPrice
- ? _value.totalMaxPrice
- : totalMaxPrice // ignore: cast_nullable_to_non_nullable
- as int?,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ currentPage:
+ null == currentPage
+ ? _value.currentPage
+ : currentPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ from:
+ freezed == from
+ ? _value.from
+ : from // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ links:
+ null == links
+ ? _value.links
+ : links // ignore: cast_nullable_to_non_nullable
+ as List,
+ path:
+ freezed == path
+ ? _value.path
+ : path // ignore: cast_nullable_to_non_nullable
+ as String?,
+ perPage:
+ null == perPage
+ ? _value.perPage
+ : perPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ to:
+ freezed == to
+ ? _value.to
+ : to // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ total:
+ null == total
+ ? _value.total
+ : total // ignore: cast_nullable_to_non_nullable
+ as int,
+ totalMinPrice:
+ freezed == totalMinPrice
+ ? _value.totalMinPrice
+ : totalMinPrice // ignore: cast_nullable_to_non_nullable
+ as int?,
+ totalMaxPrice:
+ freezed == totalMaxPrice
+ ? _value.totalMaxPrice
+ : totalMaxPrice // ignore: cast_nullable_to_non_nullable
+ as int?,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$MetaImplCopyWith<$Res> implements $MetaCopyWith<$Res> {
factory _$$MetaImplCopyWith(
- _$MetaImpl value, $Res Function(_$MetaImpl) then) =
- __$$MetaImplCopyWithImpl<$Res>;
+ _$MetaImpl value,
+ $Res Function(_$MetaImpl) then,
+ ) = __$$MetaImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "current_page") int currentPage,
- @JsonKey(name: "from") dynamic from,
- @JsonKey(name: "last_page") int lastPage,
- @JsonKey(name: "links") List links,
- @JsonKey(name: "path") String? path,
- @JsonKey(name: "per_page") int perPage,
- @JsonKey(name: "to") dynamic to,
- @JsonKey(name: "total") int total,
- @JsonKey(name: "total_min_price") int? totalMinPrice,
- @JsonKey(name: "total_max_price") int? totalMaxPrice});
+ $Res call({
+ @JsonKey(name: "current_page") int currentPage,
+ @JsonKey(name: "from") dynamic from,
+ @JsonKey(name: "last_page") int lastPage,
+ @JsonKey(name: "links") List links,
+ @JsonKey(name: "path") String? path,
+ @JsonKey(name: "per_page") int perPage,
+ @JsonKey(name: "to") dynamic to,
+ @JsonKey(name: "total") int total,
+ @JsonKey(name: "total_min_price") int? totalMinPrice,
+ @JsonKey(name: "total_max_price") int? totalMaxPrice,
+ });
}
/// @nodoc
@@ -390,7 +425,7 @@ class __$$MetaImplCopyWithImpl<$Res>
extends _$MetaCopyWithImpl<$Res, _$MetaImpl>
implements _$$MetaImplCopyWith<$Res> {
__$$MetaImplCopyWithImpl(_$MetaImpl _value, $Res Function(_$MetaImpl) _then)
- : super(_value, _then);
+ : super(_value, _then);
/// Create a copy of Meta
/// with the given fields replaced by the non-null parameter values.
@@ -408,66 +443,78 @@ class __$$MetaImplCopyWithImpl<$Res>
Object? totalMinPrice = freezed,
Object? totalMaxPrice = freezed,
}) {
- return _then(_$MetaImpl(
- currentPage: null == currentPage
- ? _value.currentPage
- : currentPage // ignore: cast_nullable_to_non_nullable
- as int,
- from: freezed == from
- ? _value.from
- : from // ignore: cast_nullable_to_non_nullable
- as dynamic,
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- links: null == links
- ? _value._links
- : links // ignore: cast_nullable_to_non_nullable
- as List,
- path: freezed == path
- ? _value.path
- : path // ignore: cast_nullable_to_non_nullable
- as String?,
- perPage: null == perPage
- ? _value.perPage
- : perPage // ignore: cast_nullable_to_non_nullable
- as int,
- to: freezed == to
- ? _value.to
- : to // ignore: cast_nullable_to_non_nullable
- as dynamic,
- total: null == total
- ? _value.total
- : total // ignore: cast_nullable_to_non_nullable
- as int,
- totalMinPrice: freezed == totalMinPrice
- ? _value.totalMinPrice
- : totalMinPrice // ignore: cast_nullable_to_non_nullable
- as int?,
- totalMaxPrice: freezed == totalMaxPrice
- ? _value.totalMaxPrice
- : totalMaxPrice // ignore: cast_nullable_to_non_nullable
- as int?,
- ));
+ return _then(
+ _$MetaImpl(
+ currentPage:
+ null == currentPage
+ ? _value.currentPage
+ : currentPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ from:
+ freezed == from
+ ? _value.from
+ : from // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ links:
+ null == links
+ ? _value._links
+ : links // ignore: cast_nullable_to_non_nullable
+ as List,
+ path:
+ freezed == path
+ ? _value.path
+ : path // ignore: cast_nullable_to_non_nullable
+ as String?,
+ perPage:
+ null == perPage
+ ? _value.perPage
+ : perPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ to:
+ freezed == to
+ ? _value.to
+ : to // ignore: cast_nullable_to_non_nullable
+ as dynamic,
+ total:
+ null == total
+ ? _value.total
+ : total // ignore: cast_nullable_to_non_nullable
+ as int,
+ totalMinPrice:
+ freezed == totalMinPrice
+ ? _value.totalMinPrice
+ : totalMinPrice // ignore: cast_nullable_to_non_nullable
+ as int?,
+ totalMaxPrice:
+ freezed == totalMaxPrice
+ ? _value.totalMaxPrice
+ : totalMaxPrice // ignore: cast_nullable_to_non_nullable
+ as int?,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$MetaImpl implements _Meta {
- const _$MetaImpl(
- {@JsonKey(name: "current_page") required this.currentPage,
- @JsonKey(name: "from") required this.from,
- @JsonKey(name: "last_page") required this.lastPage,
- @JsonKey(name: "links") required final List links,
- @JsonKey(name: "path") this.path,
- @JsonKey(name: "per_page") required this.perPage,
- @JsonKey(name: "to") required this.to,
- @JsonKey(name: "total") required this.total,
- @JsonKey(name: "total_min_price") this.totalMinPrice,
- @JsonKey(name: "total_max_price") this.totalMaxPrice})
- : _links = links;
+ const _$MetaImpl({
+ @JsonKey(name: "current_page") required this.currentPage,
+ @JsonKey(name: "from") required this.from,
+ @JsonKey(name: "last_page") required this.lastPage,
+ @JsonKey(name: "links") required final List links,
+ @JsonKey(name: "path") this.path,
+ @JsonKey(name: "per_page") required this.perPage,
+ @JsonKey(name: "to") required this.to,
+ @JsonKey(name: "total") required this.total,
+ @JsonKey(name: "total_min_price") this.totalMinPrice,
+ @JsonKey(name: "total_max_price") this.totalMaxPrice,
+ }) : _links = links;
factory _$MetaImpl.fromJson(Map json) =>
_$$MetaImplFromJson(json);
@@ -538,17 +585,18 @@ class _$MetaImpl implements _Meta {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
- runtimeType,
- currentPage,
- const DeepCollectionEquality().hash(from),
- lastPage,
- const DeepCollectionEquality().hash(_links),
- path,
- perPage,
- const DeepCollectionEquality().hash(to),
- total,
- totalMinPrice,
- totalMaxPrice);
+ runtimeType,
+ currentPage,
+ const DeepCollectionEquality().hash(from),
+ lastPage,
+ const DeepCollectionEquality().hash(_links),
+ path,
+ perPage,
+ const DeepCollectionEquality().hash(to),
+ total,
+ totalMinPrice,
+ totalMaxPrice,
+ );
/// Create a copy of Meta
/// with the given fields replaced by the non-null parameter values.
@@ -560,24 +608,23 @@ class _$MetaImpl implements _Meta {
@override
Map toJson() {
- return _$$MetaImplToJson(
- this,
- );
+ return _$$MetaImplToJson(this);
}
}
abstract class _Meta implements Meta {
- const factory _Meta(
- {@JsonKey(name: "current_page") required final int currentPage,
- @JsonKey(name: "from") required final dynamic from,
- @JsonKey(name: "last_page") required final int lastPage,
- @JsonKey(name: "links") required final List links,
- @JsonKey(name: "path") final String? path,
- @JsonKey(name: "per_page") required final int perPage,
- @JsonKey(name: "to") required final dynamic to,
- @JsonKey(name: "total") required final int total,
- @JsonKey(name: "total_min_price") final int? totalMinPrice,
- @JsonKey(name: "total_max_price") final int? totalMaxPrice}) = _$MetaImpl;
+ const factory _Meta({
+ @JsonKey(name: "current_page") required final int currentPage,
+ @JsonKey(name: "from") required final dynamic from,
+ @JsonKey(name: "last_page") required final int lastPage,
+ @JsonKey(name: "links") required final List links,
+ @JsonKey(name: "path") final String? path,
+ @JsonKey(name: "per_page") required final int perPage,
+ @JsonKey(name: "to") required final dynamic to,
+ @JsonKey(name: "total") required final int total,
+ @JsonKey(name: "total_min_price") final int? totalMinPrice,
+ @JsonKey(name: "total_max_price") final int? totalMaxPrice,
+ }) = _$MetaImpl;
factory _Meta.fromJson(Map json) = _$MetaImpl.fromJson;
@@ -647,10 +694,11 @@ abstract class $LinkCopyWith<$Res> {
factory $LinkCopyWith(Link value, $Res Function(Link) then) =
_$LinkCopyWithImpl<$Res, Link>;
@useResult
- $Res call(
- {@JsonKey(name: "url") String? url,
- @JsonKey(name: "label") String? label,
- @JsonKey(name: "active") bool? active});
+ $Res call({
+ @JsonKey(name: "url") String? url,
+ @JsonKey(name: "label") String? label,
+ @JsonKey(name: "active") bool? active,
+ });
}
/// @nodoc
@@ -672,34 +720,42 @@ class _$LinkCopyWithImpl<$Res, $Val extends Link>
Object? label = freezed,
Object? active = freezed,
}) {
- return _then(_value.copyWith(
- url: freezed == url
- ? _value.url
- : url // ignore: cast_nullable_to_non_nullable
- as String?,
- label: freezed == label
- ? _value.label
- : label // ignore: cast_nullable_to_non_nullable
- as String?,
- active: freezed == active
- ? _value.active
- : active // ignore: cast_nullable_to_non_nullable
- as bool?,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ url:
+ freezed == url
+ ? _value.url
+ : url // ignore: cast_nullable_to_non_nullable
+ as String?,
+ label:
+ freezed == label
+ ? _value.label
+ : label // ignore: cast_nullable_to_non_nullable
+ as String?,
+ active:
+ freezed == active
+ ? _value.active
+ : active // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$LinkImplCopyWith<$Res> implements $LinkCopyWith<$Res> {
factory _$$LinkImplCopyWith(
- _$LinkImpl value, $Res Function(_$LinkImpl) then) =
- __$$LinkImplCopyWithImpl<$Res>;
+ _$LinkImpl value,
+ $Res Function(_$LinkImpl) then,
+ ) = __$$LinkImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "url") String? url,
- @JsonKey(name: "label") String? label,
- @JsonKey(name: "active") bool? active});
+ $Res call({
+ @JsonKey(name: "url") String? url,
+ @JsonKey(name: "label") String? label,
+ @JsonKey(name: "active") bool? active,
+ });
}
/// @nodoc
@@ -707,7 +763,7 @@ class __$$LinkImplCopyWithImpl<$Res>
extends _$LinkCopyWithImpl<$Res, _$LinkImpl>
implements _$$LinkImplCopyWith<$Res> {
__$$LinkImplCopyWithImpl(_$LinkImpl _value, $Res Function(_$LinkImpl) _then)
- : super(_value, _then);
+ : super(_value, _then);
/// Create a copy of Link
/// with the given fields replaced by the non-null parameter values.
@@ -718,30 +774,36 @@ class __$$LinkImplCopyWithImpl<$Res>
Object? label = freezed,
Object? active = freezed,
}) {
- return _then(_$LinkImpl(
- url: freezed == url
- ? _value.url
- : url // ignore: cast_nullable_to_non_nullable
- as String?,
- label: freezed == label
- ? _value.label
- : label // ignore: cast_nullable_to_non_nullable
- as String?,
- active: freezed == active
- ? _value.active
- : active // ignore: cast_nullable_to_non_nullable
- as bool?,
- ));
+ return _then(
+ _$LinkImpl(
+ url:
+ freezed == url
+ ? _value.url
+ : url // ignore: cast_nullable_to_non_nullable
+ as String?,
+ label:
+ freezed == label
+ ? _value.label
+ : label // ignore: cast_nullable_to_non_nullable
+ as String?,
+ active:
+ freezed == active
+ ? _value.active
+ : active // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$LinkImpl implements _Link {
- const _$LinkImpl(
- {@JsonKey(name: "url") this.url,
- @JsonKey(name: "label") this.label,
- @JsonKey(name: "active") this.active});
+ const _$LinkImpl({
+ @JsonKey(name: "url") this.url,
+ @JsonKey(name: "label") this.label,
+ @JsonKey(name: "active") this.active,
+ });
factory _$LinkImpl.fromJson(Map json) =>
_$$LinkImplFromJson(json);
@@ -785,17 +847,16 @@ class _$LinkImpl implements _Link {
@override
Map toJson() {
- return _$$LinkImplToJson(
- this,
- );
+ return _$$LinkImplToJson(this);
}
}
abstract class _Link implements Link {
- const factory _Link(
- {@JsonKey(name: "url") final String? url,
- @JsonKey(name: "label") final String? label,
- @JsonKey(name: "active") final bool? active}) = _$LinkImpl;
+ const factory _Link({
+ @JsonKey(name: "url") final String? url,
+ @JsonKey(name: "label") final String? label,
+ @JsonKey(name: "active") final bool? active,
+ }) = _$LinkImpl;
factory _Link.fromJson(Map json) = _$LinkImpl.fromJson;
diff --git a/lib/core/models/pagination_model.g.dart b/lib/core/models/pagination_model.g.dart
index b89eb0b8..f9ac6cc1 100644
--- a/lib/core/models/pagination_model.g.dart
+++ b/lib/core/models/pagination_model.g.dart
@@ -7,11 +7,11 @@ part of 'pagination_model.dart';
// **************************************************************************
_$LinksImpl _$$LinksImplFromJson(Map json) => _$LinksImpl(
- first: json['first'] as String,
- last: json['last'] as String,
- prev: json['prev'],
- next: json['next'],
- );
+ first: json['first'] as String,
+ last: json['last'] as String,
+ prev: json['prev'],
+ next: json['next'],
+);
Map _$$LinksImplToJson(_$LinksImpl instance) =>
{
@@ -22,19 +22,20 @@ Map _$$LinksImplToJson(_$LinksImpl instance) =>
};
_$MetaImpl _$$MetaImplFromJson(Map json) => _$MetaImpl(
- currentPage: (json['current_page'] as num).toInt(),
- from: json['from'],
- lastPage: (json['last_page'] as num).toInt(),
- links: (json['links'] as List)
+ currentPage: (json['current_page'] as num).toInt(),
+ from: json['from'],
+ lastPage: (json['last_page'] as num).toInt(),
+ links:
+ (json['links'] as List)
.map((e) => Link.fromJson(e as Map))
.toList(),
- path: json['path'] as String?,
- perPage: (json['per_page'] as num).toInt(),
- to: json['to'],
- total: (json['total'] as num).toInt(),
- totalMinPrice: (json['total_min_price'] as num?)?.toInt(),
- totalMaxPrice: (json['total_max_price'] as num?)?.toInt(),
- );
+ path: json['path'] as String?,
+ perPage: (json['per_page'] as num).toInt(),
+ to: json['to'],
+ total: (json['total'] as num).toInt(),
+ totalMinPrice: (json['total_min_price'] as num?)?.toInt(),
+ totalMaxPrice: (json['total_max_price'] as num?)?.toInt(),
+);
Map _$$MetaImplToJson(_$MetaImpl instance) =>
{
@@ -51,10 +52,10 @@ Map _$$MetaImplToJson(_$MetaImpl instance) =>
};
_$LinkImpl _$$LinkImplFromJson(Map json) => _$LinkImpl(
- url: json['url'] as String?,
- label: json['label'] as String?,
- active: json['active'] as bool?,
- );
+ url: json['url'] as String?,
+ label: json['label'] as String?,
+ active: json['active'] as bool?,
+);
Map _$$LinkImplToJson(_$LinkImpl instance) =>
{
diff --git a/lib/features/auth/models/credentials_model.freezed.dart b/lib/features/auth/models/credentials_model.freezed.dart
index 270a5a99..73b2871e 100644
--- a/lib/features/auth/models/credentials_model.freezed.dart
+++ b/lib/features/auth/models/credentials_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'credentials_model.dart';
T _$identity(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',
+);
CredentialsModel _$CredentialsModelFromJson(Map json) {
return _CredentialsModel.fromJson(json);
@@ -36,8 +37,9 @@ mixin _$CredentialsModel {
/// @nodoc
abstract class $CredentialsModelCopyWith<$Res> {
factory $CredentialsModelCopyWith(
- CredentialsModel value, $Res Function(CredentialsModel) then) =
- _$CredentialsModelCopyWithImpl<$Res, CredentialsModel>;
+ CredentialsModel value,
+ $Res Function(CredentialsModel) then,
+ ) = _$CredentialsModelCopyWithImpl<$Res, CredentialsModel>;
@useResult
$Res call({String email, String password});
}
@@ -56,29 +58,32 @@ class _$CredentialsModelCopyWithImpl<$Res, $Val extends CredentialsModel>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? email = null,
- Object? password = null,
- }) {
- return _then(_value.copyWith(
- email: null == email
- ? _value.email
- : email // ignore: cast_nullable_to_non_nullable
- as String,
- password: null == password
- ? _value.password
- : password // ignore: cast_nullable_to_non_nullable
- as String,
- ) as $Val);
+ $Res call({Object? email = null, Object? password = null}) {
+ return _then(
+ _value.copyWith(
+ email:
+ null == email
+ ? _value.email
+ : email // ignore: cast_nullable_to_non_nullable
+ as String,
+ password:
+ null == password
+ ? _value.password
+ : password // ignore: cast_nullable_to_non_nullable
+ as String,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$CredentialsModelImplCopyWith<$Res>
implements $CredentialsModelCopyWith<$Res> {
- factory _$$CredentialsModelImplCopyWith(_$CredentialsModelImpl value,
- $Res Function(_$CredentialsModelImpl) then) =
- __$$CredentialsModelImplCopyWithImpl<$Res>;
+ factory _$$CredentialsModelImplCopyWith(
+ _$CredentialsModelImpl value,
+ $Res Function(_$CredentialsModelImpl) then,
+ ) = __$$CredentialsModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String email, String password});
@@ -88,28 +93,30 @@ abstract class _$$CredentialsModelImplCopyWith<$Res>
class __$$CredentialsModelImplCopyWithImpl<$Res>
extends _$CredentialsModelCopyWithImpl<$Res, _$CredentialsModelImpl>
implements _$$CredentialsModelImplCopyWith<$Res> {
- __$$CredentialsModelImplCopyWithImpl(_$CredentialsModelImpl _value,
- $Res Function(_$CredentialsModelImpl) _then)
- : super(_value, _then);
+ __$$CredentialsModelImplCopyWithImpl(
+ _$CredentialsModelImpl _value,
+ $Res Function(_$CredentialsModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CredentialsModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? email = null,
- Object? password = null,
- }) {
- return _then(_$CredentialsModelImpl(
- email: null == email
- ? _value.email
- : email // ignore: cast_nullable_to_non_nullable
- as String,
- password: null == password
- ? _value.password
- : password // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? email = null, Object? password = null}) {
+ return _then(
+ _$CredentialsModelImpl(
+ email:
+ null == email
+ ? _value.email
+ : email // ignore: cast_nullable_to_non_nullable
+ as String,
+ password:
+ null == password
+ ? _value.password
+ : password // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -152,20 +159,21 @@ class _$CredentialsModelImpl implements _CredentialsModel {
@pragma('vm:prefer-inline')
_$$CredentialsModelImplCopyWith<_$CredentialsModelImpl> get copyWith =>
__$$CredentialsModelImplCopyWithImpl<_$CredentialsModelImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
Map toJson() {
- return _$$CredentialsModelImplToJson(
- this,
- );
+ return _$$CredentialsModelImplToJson(this);
}
}
abstract class _CredentialsModel implements CredentialsModel {
- const factory _CredentialsModel(
- {required final String email,
- required final String password}) = _$CredentialsModelImpl;
+ const factory _CredentialsModel({
+ required final String email,
+ required final String password,
+ }) = _$CredentialsModelImpl;
factory _CredentialsModel.fromJson(Map json) =
_$CredentialsModelImpl.fromJson;
diff --git a/lib/features/auth/models/credentials_model.g.dart b/lib/features/auth/models/credentials_model.g.dart
index eb2c98e8..a7dcefc4 100644
--- a/lib/features/auth/models/credentials_model.g.dart
+++ b/lib/features/auth/models/credentials_model.g.dart
@@ -7,15 +7,12 @@ part of 'credentials_model.dart';
// **************************************************************************
_$CredentialsModelImpl _$$CredentialsModelImplFromJson(
- Map json) =>
- _$CredentialsModelImpl(
- email: json['email'] as String,
- password: json['password'] as String,
- );
+ Map json,
+) => _$CredentialsModelImpl(
+ email: json['email'] as String,
+ password: json['password'] as String,
+);
Map _$$CredentialsModelImplToJson(
- _$CredentialsModelImpl instance) =>
- {
- 'email': instance.email,
- 'password': instance.password,
- };
+ _$CredentialsModelImpl instance,
+) => {'email': instance.email, 'password': instance.password};
diff --git a/lib/features/auth/models/token_model.freezed.dart b/lib/features/auth/models/token_model.freezed.dart
index ec0210f4..d04c0545 100644
--- a/lib/features/auth/models/token_model.freezed.dart
+++ b/lib/features/auth/models/token_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'token_model.dart';
T _$identity(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',
+);
TokenModel _$TokenModelFromJson(Map json) {
return _TokenModel.fromJson(json);
@@ -35,8 +36,9 @@ mixin _$TokenModel {
/// @nodoc
abstract class $TokenModelCopyWith<$Res> {
factory $TokenModelCopyWith(
- TokenModel value, $Res Function(TokenModel) then) =
- _$TokenModelCopyWithImpl<$Res, TokenModel>;
+ TokenModel value,
+ $Res Function(TokenModel) then,
+ ) = _$TokenModelCopyWithImpl<$Res, TokenModel>;
@useResult
$Res call({String token});
}
@@ -55,15 +57,17 @@ class _$TokenModelCopyWithImpl<$Res, $Val extends TokenModel>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? token = null,
- }) {
- return _then(_value.copyWith(
- token: null == token
- ? _value.token
- : token // ignore: cast_nullable_to_non_nullable
- as String,
- ) as $Val);
+ $Res call({Object? token = null}) {
+ return _then(
+ _value.copyWith(
+ token:
+ null == token
+ ? _value.token
+ : token // ignore: cast_nullable_to_non_nullable
+ as String,
+ )
+ as $Val,
+ );
}
}
@@ -71,8 +75,9 @@ class _$TokenModelCopyWithImpl<$Res, $Val extends TokenModel>
abstract class _$$TokenModelImplCopyWith<$Res>
implements $TokenModelCopyWith<$Res> {
factory _$$TokenModelImplCopyWith(
- _$TokenModelImpl value, $Res Function(_$TokenModelImpl) then) =
- __$$TokenModelImplCopyWithImpl<$Res>;
+ _$TokenModelImpl value,
+ $Res Function(_$TokenModelImpl) then,
+ ) = __$$TokenModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String token});
@@ -83,22 +88,24 @@ class __$$TokenModelImplCopyWithImpl<$Res>
extends _$TokenModelCopyWithImpl<$Res, _$TokenModelImpl>
implements _$$TokenModelImplCopyWith<$Res> {
__$$TokenModelImplCopyWithImpl(
- _$TokenModelImpl _value, $Res Function(_$TokenModelImpl) _then)
- : super(_value, _then);
+ _$TokenModelImpl _value,
+ $Res Function(_$TokenModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of TokenModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? token = null,
- }) {
- return _then(_$TokenModelImpl(
- token: null == token
- ? _value.token
- : token // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? token = null}) {
+ return _then(
+ _$TokenModelImpl(
+ token:
+ null == token
+ ? _value.token
+ : token // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -140,9 +147,7 @@ class _$TokenModelImpl implements _TokenModel {
@override
Map toJson() {
- return _$$TokenModelImplToJson(
- this,
- );
+ return _$$TokenModelImplToJson(this);
}
}
diff --git a/lib/features/auth/models/token_model.g.dart b/lib/features/auth/models/token_model.g.dart
index f2ea4bd9..41be8b6d 100644
--- a/lib/features/auth/models/token_model.g.dart
+++ b/lib/features/auth/models/token_model.g.dart
@@ -7,11 +7,7 @@ part of 'token_model.dart';
// **************************************************************************
_$TokenModelImpl _$$TokenModelImplFromJson(Map json) =>
- _$TokenModelImpl(
- token: json['token'] as String,
- );
+ _$TokenModelImpl(token: json['token'] as String);
Map _$$TokenModelImplToJson(_$TokenModelImpl instance) =>
- {
- 'token': instance.token,
- };
+ {'token': instance.token};
diff --git a/lib/features/auth/presentation/bloc/auth_state.freezed.dart b/lib/features/auth/presentation/bloc/auth_state.freezed.dart
index c0be41a8..0ee0756e 100644
--- a/lib/features/auth/presentation/bloc/auth_state.freezed.dart
+++ b/lib/features/auth/presentation/bloc/auth_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'auth_state.dart';
T _$identity(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 _$AuthState {
@@ -22,16 +23,14 @@ mixin _$AuthState {
required TResult Function() loading,
required TResult Function(String token) loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? loading,
TResult? Function(String token)? loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$AuthState {
TResult Function(String token)? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_AuthState value) $default, {
required TResult Function(AuthStateLoading value) loading,
required TResult Function(AuthStateLoaded value) loaded,
required TResult Function(AuthStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_AuthState value)? $default, {
TResult? Function(AuthStateLoading value)? loading,
TResult? Function(AuthStateLoaded value)? loaded,
TResult? Function(AuthStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_AuthState value)? $default, {
@@ -64,8 +60,7 @@ mixin _$AuthState {
TResult Function(AuthStateLoaded value)? loaded,
TResult Function(AuthStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
@@ -91,8 +86,9 @@ class _$AuthStateCopyWithImpl<$Res, $Val extends AuthState>
/// @nodoc
abstract class _$$AuthStateImplCopyWith<$Res> {
factory _$$AuthStateImplCopyWith(
- _$AuthStateImpl value, $Res Function(_$AuthStateImpl) then) =
- __$$AuthStateImplCopyWithImpl<$Res>;
+ _$AuthStateImpl value,
+ $Res Function(_$AuthStateImpl) then,
+ ) = __$$AuthStateImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -100,8 +96,9 @@ class __$$AuthStateImplCopyWithImpl<$Res>
extends _$AuthStateCopyWithImpl<$Res, _$AuthStateImpl>
implements _$$AuthStateImplCopyWith<$Res> {
__$$AuthStateImplCopyWithImpl(
- _$AuthStateImpl _value, $Res Function(_$AuthStateImpl) _then)
- : super(_value, _then);
+ _$AuthStateImpl _value,
+ $Res Function(_$AuthStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@@ -207,18 +204,20 @@ abstract class _AuthState implements AuthState {
/// @nodoc
abstract class _$$AuthStateLoadingImplCopyWith<$Res> {
- factory _$$AuthStateLoadingImplCopyWith(_$AuthStateLoadingImpl value,
- $Res Function(_$AuthStateLoadingImpl) then) =
- __$$AuthStateLoadingImplCopyWithImpl<$Res>;
+ factory _$$AuthStateLoadingImplCopyWith(
+ _$AuthStateLoadingImpl value,
+ $Res Function(_$AuthStateLoadingImpl) then,
+ ) = __$$AuthStateLoadingImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$AuthStateLoadingImplCopyWithImpl<$Res>
extends _$AuthStateCopyWithImpl<$Res, _$AuthStateLoadingImpl>
implements _$$AuthStateLoadingImplCopyWith<$Res> {
- __$$AuthStateLoadingImplCopyWithImpl(_$AuthStateLoadingImpl _value,
- $Res Function(_$AuthStateLoadingImpl) _then)
- : super(_value, _then);
+ __$$AuthStateLoadingImplCopyWithImpl(
+ _$AuthStateLoadingImpl _value,
+ $Res Function(_$AuthStateLoadingImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@@ -324,9 +323,10 @@ abstract class AuthStateLoading implements AuthState {
/// @nodoc
abstract class _$$AuthStateLoadedImplCopyWith<$Res> {
- factory _$$AuthStateLoadedImplCopyWith(_$AuthStateLoadedImpl value,
- $Res Function(_$AuthStateLoadedImpl) then) =
- __$$AuthStateLoadedImplCopyWithImpl<$Res>;
+ factory _$$AuthStateLoadedImplCopyWith(
+ _$AuthStateLoadedImpl value,
+ $Res Function(_$AuthStateLoadedImpl) then,
+ ) = __$$AuthStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({String token});
}
@@ -336,22 +336,24 @@ class __$$AuthStateLoadedImplCopyWithImpl<$Res>
extends _$AuthStateCopyWithImpl<$Res, _$AuthStateLoadedImpl>
implements _$$AuthStateLoadedImplCopyWith<$Res> {
__$$AuthStateLoadedImplCopyWithImpl(
- _$AuthStateLoadedImpl _value, $Res Function(_$AuthStateLoadedImpl) _then)
- : super(_value, _then);
+ _$AuthStateLoadedImpl _value,
+ $Res Function(_$AuthStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? token = null,
- }) {
- return _then(_$AuthStateLoadedImpl(
- token: null == token
- ? _value.token
- : token // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? token = null}) {
+ return _then(
+ _$AuthStateLoadedImpl(
+ token:
+ null == token
+ ? _value.token
+ : token // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -386,7 +388,9 @@ class _$AuthStateLoadedImpl implements AuthStateLoaded {
@pragma('vm:prefer-inline')
_$$AuthStateLoadedImplCopyWith<_$AuthStateLoadedImpl> get copyWith =>
__$$AuthStateLoadedImplCopyWithImpl<_$AuthStateLoadedImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
@@ -478,9 +482,10 @@ abstract class AuthStateLoaded implements AuthState {
/// @nodoc
abstract class _$$AuthStateErrorImplCopyWith<$Res> {
- factory _$$AuthStateErrorImplCopyWith(_$AuthStateErrorImpl value,
- $Res Function(_$AuthStateErrorImpl) then) =
- __$$AuthStateErrorImplCopyWithImpl<$Res>;
+ factory _$$AuthStateErrorImplCopyWith(
+ _$AuthStateErrorImpl value,
+ $Res Function(_$AuthStateErrorImpl) then,
+ ) = __$$AuthStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
@@ -490,22 +495,24 @@ class __$$AuthStateErrorImplCopyWithImpl<$Res>
extends _$AuthStateCopyWithImpl<$Res, _$AuthStateErrorImpl>
implements _$$AuthStateErrorImplCopyWith<$Res> {
__$$AuthStateErrorImplCopyWithImpl(
- _$AuthStateErrorImpl _value, $Res Function(_$AuthStateErrorImpl) _then)
- : super(_value, _then);
+ _$AuthStateErrorImpl _value,
+ $Res Function(_$AuthStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$AuthStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$AuthStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -541,7 +548,9 @@ class _$AuthStateErrorImpl implements AuthStateError {
@pragma('vm:prefer-inline')
_$$AuthStateErrorImplCopyWith<_$AuthStateErrorImpl> get copyWith =>
__$$AuthStateErrorImplCopyWithImpl<_$AuthStateErrorImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
diff --git a/lib/features/blog_post_create/bloc/blog_post_create_cubit/blog_post_create_state.freezed.dart b/lib/features/blog_post_create/bloc/blog_post_create_cubit/blog_post_create_state.freezed.dart
index d9a702c6..973a9bca 100644
--- a/lib/features/blog_post_create/bloc/blog_post_create_cubit/blog_post_create_state.freezed.dart
+++ b/lib/features/blog_post_create/bloc/blog_post_create_cubit/blog_post_create_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'blog_post_create_state.dart';
T _$identity(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 _$BlogPostCreateState {
@@ -22,16 +23,14 @@ mixin _$BlogPostCreateState {
required TResult Function() loading,
required TResult Function() loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? loading,
TResult? Function()? loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$BlogPostCreateState {
TResult Function()? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_BlogPostCreateState value) $default, {
required TResult Function(BlogPostCreateStateLoading value) loading,
required TResult Function(BlogPostCreateStateLoaded value) loaded,
required TResult Function(BlogPostCreateStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_BlogPostCreateState value)? $default, {
TResult? Function(BlogPostCreateStateLoading value)? loading,
TResult? Function(BlogPostCreateStateLoaded value)? loaded,
TResult? Function(BlogPostCreateStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_BlogPostCreateState value)? $default, {
@@ -64,15 +60,15 @@ mixin _$BlogPostCreateState {
TResult Function(BlogPostCreateStateLoaded value)? loaded,
TResult Function(BlogPostCreateStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $BlogPostCreateStateCopyWith<$Res> {
factory $BlogPostCreateStateCopyWith(
- BlogPostCreateState value, $Res Function(BlogPostCreateState) then) =
- _$BlogPostCreateStateCopyWithImpl<$Res, BlogPostCreateState>;
+ BlogPostCreateState value,
+ $Res Function(BlogPostCreateState) then,
+ ) = _$BlogPostCreateStateCopyWithImpl<$Res, BlogPostCreateState>;
}
/// @nodoc
@@ -91,18 +87,20 @@ class _$BlogPostCreateStateCopyWithImpl<$Res, $Val extends BlogPostCreateState>
/// @nodoc
abstract class _$$BlogPostCreateStateImplCopyWith<$Res> {
- factory _$$BlogPostCreateStateImplCopyWith(_$BlogPostCreateStateImpl value,
- $Res Function(_$BlogPostCreateStateImpl) then) =
- __$$BlogPostCreateStateImplCopyWithImpl<$Res>;
+ factory _$$BlogPostCreateStateImplCopyWith(
+ _$BlogPostCreateStateImpl value,
+ $Res Function(_$BlogPostCreateStateImpl) then,
+ ) = __$$BlogPostCreateStateImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$BlogPostCreateStateImplCopyWithImpl<$Res>
extends _$BlogPostCreateStateCopyWithImpl<$Res, _$BlogPostCreateStateImpl>
implements _$$BlogPostCreateStateImplCopyWith<$Res> {
- __$$BlogPostCreateStateImplCopyWithImpl(_$BlogPostCreateStateImpl _value,
- $Res Function(_$BlogPostCreateStateImpl) _then)
- : super(_value, _then);
+ __$$BlogPostCreateStateImplCopyWithImpl(
+ _$BlogPostCreateStateImpl _value,
+ $Res Function(_$BlogPostCreateStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of BlogPostCreateState
/// with the given fields replaced by the non-null parameter values.
@@ -210,20 +208,23 @@ abstract class _BlogPostCreateState implements BlogPostCreateState {
/// @nodoc
abstract class _$$BlogPostCreateStateLoadingImplCopyWith<$Res> {
factory _$$BlogPostCreateStateLoadingImplCopyWith(
- _$BlogPostCreateStateLoadingImpl value,
- $Res Function(_$BlogPostCreateStateLoadingImpl) then) =
- __$$BlogPostCreateStateLoadingImplCopyWithImpl<$Res>;
+ _$BlogPostCreateStateLoadingImpl value,
+ $Res Function(_$BlogPostCreateStateLoadingImpl) then,
+ ) = __$$BlogPostCreateStateLoadingImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$BlogPostCreateStateLoadingImplCopyWithImpl<$Res>
- extends _$BlogPostCreateStateCopyWithImpl<$Res,
- _$BlogPostCreateStateLoadingImpl>
+ extends
+ _$BlogPostCreateStateCopyWithImpl<
+ $Res,
+ _$BlogPostCreateStateLoadingImpl
+ >
implements _$$BlogPostCreateStateLoadingImplCopyWith<$Res> {
__$$BlogPostCreateStateLoadingImplCopyWithImpl(
- _$BlogPostCreateStateLoadingImpl _value,
- $Res Function(_$BlogPostCreateStateLoadingImpl) _then)
- : super(_value, _then);
+ _$BlogPostCreateStateLoadingImpl _value,
+ $Res Function(_$BlogPostCreateStateLoadingImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of BlogPostCreateState
/// with the given fields replaced by the non-null parameter values.
@@ -331,20 +332,20 @@ abstract class BlogPostCreateStateLoading implements BlogPostCreateState {
/// @nodoc
abstract class _$$BlogPostCreateStateLoadedImplCopyWith<$Res> {
factory _$$BlogPostCreateStateLoadedImplCopyWith(
- _$BlogPostCreateStateLoadedImpl value,
- $Res Function(_$BlogPostCreateStateLoadedImpl) then) =
- __$$BlogPostCreateStateLoadedImplCopyWithImpl<$Res>;
+ _$BlogPostCreateStateLoadedImpl value,
+ $Res Function(_$BlogPostCreateStateLoadedImpl) then,
+ ) = __$$BlogPostCreateStateLoadedImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$BlogPostCreateStateLoadedImplCopyWithImpl<$Res>
- extends _$BlogPostCreateStateCopyWithImpl<$Res,
- _$BlogPostCreateStateLoadedImpl>
+ extends
+ _$BlogPostCreateStateCopyWithImpl<$Res, _$BlogPostCreateStateLoadedImpl>
implements _$$BlogPostCreateStateLoadedImplCopyWith<$Res> {
__$$BlogPostCreateStateLoadedImplCopyWithImpl(
- _$BlogPostCreateStateLoadedImpl _value,
- $Res Function(_$BlogPostCreateStateLoadedImpl) _then)
- : super(_value, _then);
+ _$BlogPostCreateStateLoadedImpl _value,
+ $Res Function(_$BlogPostCreateStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of BlogPostCreateState
/// with the given fields replaced by the non-null parameter values.
@@ -452,36 +453,37 @@ abstract class BlogPostCreateStateLoaded implements BlogPostCreateState {
/// @nodoc
abstract class _$$BlogPostCreateStateErrorImplCopyWith<$Res> {
factory _$$BlogPostCreateStateErrorImplCopyWith(
- _$BlogPostCreateStateErrorImpl value,
- $Res Function(_$BlogPostCreateStateErrorImpl) then) =
- __$$BlogPostCreateStateErrorImplCopyWithImpl<$Res>;
+ _$BlogPostCreateStateErrorImpl value,
+ $Res Function(_$BlogPostCreateStateErrorImpl) then,
+ ) = __$$BlogPostCreateStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
/// @nodoc
class __$$BlogPostCreateStateErrorImplCopyWithImpl<$Res>
- extends _$BlogPostCreateStateCopyWithImpl<$Res,
- _$BlogPostCreateStateErrorImpl>
+ extends
+ _$BlogPostCreateStateCopyWithImpl<$Res, _$BlogPostCreateStateErrorImpl>
implements _$$BlogPostCreateStateErrorImplCopyWith<$Res> {
__$$BlogPostCreateStateErrorImplCopyWithImpl(
- _$BlogPostCreateStateErrorImpl _value,
- $Res Function(_$BlogPostCreateStateErrorImpl) _then)
- : super(_value, _then);
+ _$BlogPostCreateStateErrorImpl _value,
+ $Res Function(_$BlogPostCreateStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of BlogPostCreateState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$BlogPostCreateStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$BlogPostCreateStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -516,8 +518,9 @@ class _$BlogPostCreateStateErrorImpl implements BlogPostCreateStateError {
@override
@pragma('vm:prefer-inline')
_$$BlogPostCreateStateErrorImplCopyWith<_$BlogPostCreateStateErrorImpl>
- get copyWith => __$$BlogPostCreateStateErrorImplCopyWithImpl<
- _$BlogPostCreateStateErrorImpl>(this, _$identity);
+ get copyWith => __$$BlogPostCreateStateErrorImplCopyWithImpl<
+ _$BlogPostCreateStateErrorImpl
+ >(this, _$identity);
@override
@optionalTypeArgs
@@ -604,5 +607,5 @@ abstract class BlogPostCreateStateError implements BlogPostCreateState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$BlogPostCreateStateErrorImplCopyWith<_$BlogPostCreateStateErrorImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/lib/features/blog_post_create/services/blog_post_service.g.dart b/lib/features/blog_post_create/services/blog_post_service.g.dart
index a93ef727..aa430049 100644
--- a/lib/features/blog_post_create/services/blog_post_service.g.dart
+++ b/lib/features/blog_post_create/services/blog_post_service.g.dart
@@ -25,11 +25,11 @@ class _BlogPostService implements BlogPostService {
final _data = formData;
final _options = _setStreamType(
Options(
- method: 'POST',
- headers: _headers,
- extra: _extra,
- contentType: 'multipart/form-data',
- )
+ method: 'POST',
+ headers: _headers,
+ extra: _extra,
+ contentType: 'multipart/form-data',
+ )
.compose(
_dio.options,
'/api/blogPosts/create/published',
@@ -52,11 +52,11 @@ class _BlogPostService implements BlogPostService {
final _data = formData;
final _options = _setStreamType(
Options(
- method: 'POST',
- headers: _headers,
- extra: _extra,
- contentType: 'multipart/form-data',
- )
+ method: 'POST',
+ headers: _headers,
+ extra: _extra,
+ contentType: 'multipart/form-data',
+ )
.compose(
_dio.options,
'/api/blogPosts/update/${id}',
diff --git a/lib/features/bottom_navigation_bar/presentation/bloc/new_messages_cubit/new_messages_state.freezed.dart b/lib/features/bottom_navigation_bar/presentation/bloc/new_messages_cubit/new_messages_state.freezed.dart
index 7c5d7ffd..621cd1bb 100644
--- a/lib/features/bottom_navigation_bar/presentation/bloc/new_messages_cubit/new_messages_state.freezed.dart
+++ b/lib/features/bottom_navigation_bar/presentation/bloc/new_messages_cubit/new_messages_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'new_messages_state.dart';
T _$identity(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 _$NewMessagesState {
@@ -22,16 +23,14 @@ mixin _$NewMessagesState {
required TResult Function() empty,
required TResult Function(int messagesCount) loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(int messagesCount)? loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$NewMessagesState {
TResult Function(int messagesCount)? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_NewMessagesState value) $default, {
required TResult Function(NewMessagesStateEmpty value) empty,
required TResult Function(NewMessagesStateLoaded value) loaded,
required TResult Function(NewMessagesStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_NewMessagesState value)? $default, {
TResult? Function(NewMessagesStateEmpty value)? empty,
TResult? Function(NewMessagesStateLoaded value)? loaded,
TResult? Function(NewMessagesStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_NewMessagesState value)? $default, {
@@ -64,15 +60,15 @@ mixin _$NewMessagesState {
TResult Function(NewMessagesStateLoaded value)? loaded,
TResult Function(NewMessagesStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $NewMessagesStateCopyWith<$Res> {
factory $NewMessagesStateCopyWith(
- NewMessagesState value, $Res Function(NewMessagesState) then) =
- _$NewMessagesStateCopyWithImpl<$Res, NewMessagesState>;
+ NewMessagesState value,
+ $Res Function(NewMessagesState) then,
+ ) = _$NewMessagesStateCopyWithImpl<$Res, NewMessagesState>;
}
/// @nodoc
@@ -91,18 +87,20 @@ class _$NewMessagesStateCopyWithImpl<$Res, $Val extends NewMessagesState>
/// @nodoc
abstract class _$$NewMessagesStateImplCopyWith<$Res> {
- factory _$$NewMessagesStateImplCopyWith(_$NewMessagesStateImpl value,
- $Res Function(_$NewMessagesStateImpl) then) =
- __$$NewMessagesStateImplCopyWithImpl<$Res>;
+ factory _$$NewMessagesStateImplCopyWith(
+ _$NewMessagesStateImpl value,
+ $Res Function(_$NewMessagesStateImpl) then,
+ ) = __$$NewMessagesStateImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$NewMessagesStateImplCopyWithImpl<$Res>
extends _$NewMessagesStateCopyWithImpl<$Res, _$NewMessagesStateImpl>
implements _$$NewMessagesStateImplCopyWith<$Res> {
- __$$NewMessagesStateImplCopyWithImpl(_$NewMessagesStateImpl _value,
- $Res Function(_$NewMessagesStateImpl) _then)
- : super(_value, _then);
+ __$$NewMessagesStateImplCopyWithImpl(
+ _$NewMessagesStateImpl _value,
+ $Res Function(_$NewMessagesStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NewMessagesState
/// with the given fields replaced by the non-null parameter values.
@@ -209,18 +207,19 @@ abstract class _NewMessagesState implements NewMessagesState {
/// @nodoc
abstract class _$$NewMessagesStateEmptyImplCopyWith<$Res> {
factory _$$NewMessagesStateEmptyImplCopyWith(
- _$NewMessagesStateEmptyImpl value,
- $Res Function(_$NewMessagesStateEmptyImpl) then) =
- __$$NewMessagesStateEmptyImplCopyWithImpl<$Res>;
+ _$NewMessagesStateEmptyImpl value,
+ $Res Function(_$NewMessagesStateEmptyImpl) then,
+ ) = __$$NewMessagesStateEmptyImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$NewMessagesStateEmptyImplCopyWithImpl<$Res>
extends _$NewMessagesStateCopyWithImpl<$Res, _$NewMessagesStateEmptyImpl>
implements _$$NewMessagesStateEmptyImplCopyWith<$Res> {
- __$$NewMessagesStateEmptyImplCopyWithImpl(_$NewMessagesStateEmptyImpl _value,
- $Res Function(_$NewMessagesStateEmptyImpl) _then)
- : super(_value, _then);
+ __$$NewMessagesStateEmptyImplCopyWithImpl(
+ _$NewMessagesStateEmptyImpl _value,
+ $Res Function(_$NewMessagesStateEmptyImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NewMessagesState
/// with the given fields replaced by the non-null parameter values.
@@ -328,9 +327,9 @@ abstract class NewMessagesStateEmpty implements NewMessagesState {
/// @nodoc
abstract class _$$NewMessagesStateLoadedImplCopyWith<$Res> {
factory _$$NewMessagesStateLoadedImplCopyWith(
- _$NewMessagesStateLoadedImpl value,
- $Res Function(_$NewMessagesStateLoadedImpl) then) =
- __$$NewMessagesStateLoadedImplCopyWithImpl<$Res>;
+ _$NewMessagesStateLoadedImpl value,
+ $Res Function(_$NewMessagesStateLoadedImpl) then,
+ ) = __$$NewMessagesStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({int messagesCount});
}
@@ -340,23 +339,24 @@ class __$$NewMessagesStateLoadedImplCopyWithImpl<$Res>
extends _$NewMessagesStateCopyWithImpl<$Res, _$NewMessagesStateLoadedImpl>
implements _$$NewMessagesStateLoadedImplCopyWith<$Res> {
__$$NewMessagesStateLoadedImplCopyWithImpl(
- _$NewMessagesStateLoadedImpl _value,
- $Res Function(_$NewMessagesStateLoadedImpl) _then)
- : super(_value, _then);
+ _$NewMessagesStateLoadedImpl _value,
+ $Res Function(_$NewMessagesStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NewMessagesState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? messagesCount = null,
- }) {
- return _then(_$NewMessagesStateLoadedImpl(
- messagesCount: null == messagesCount
- ? _value.messagesCount
- : messagesCount // ignore: cast_nullable_to_non_nullable
- as int,
- ));
+ $Res call({Object? messagesCount = null}) {
+ return _then(
+ _$NewMessagesStateLoadedImpl(
+ messagesCount:
+ null == messagesCount
+ ? _value.messagesCount
+ : messagesCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ ),
+ );
}
}
@@ -391,8 +391,11 @@ class _$NewMessagesStateLoadedImpl implements NewMessagesStateLoaded {
@override
@pragma('vm:prefer-inline')
_$$NewMessagesStateLoadedImplCopyWith<_$NewMessagesStateLoadedImpl>
- get copyWith => __$$NewMessagesStateLoadedImplCopyWithImpl<
- _$NewMessagesStateLoadedImpl>(this, _$identity);
+ get copyWith =>
+ __$$NewMessagesStateLoadedImplCopyWithImpl<_$NewMessagesStateLoadedImpl>(
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
@@ -479,15 +482,15 @@ abstract class NewMessagesStateLoaded implements NewMessagesState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$NewMessagesStateLoadedImplCopyWith<_$NewMessagesStateLoadedImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class _$$NewMessagesStateErrorImplCopyWith<$Res> {
factory _$$NewMessagesStateErrorImplCopyWith(
- _$NewMessagesStateErrorImpl value,
- $Res Function(_$NewMessagesStateErrorImpl) then) =
- __$$NewMessagesStateErrorImplCopyWithImpl<$Res>;
+ _$NewMessagesStateErrorImpl value,
+ $Res Function(_$NewMessagesStateErrorImpl) then,
+ ) = __$$NewMessagesStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
@@ -496,23 +499,25 @@ abstract class _$$NewMessagesStateErrorImplCopyWith<$Res> {
class __$$NewMessagesStateErrorImplCopyWithImpl<$Res>
extends _$NewMessagesStateCopyWithImpl<$Res, _$NewMessagesStateErrorImpl>
implements _$$NewMessagesStateErrorImplCopyWith<$Res> {
- __$$NewMessagesStateErrorImplCopyWithImpl(_$NewMessagesStateErrorImpl _value,
- $Res Function(_$NewMessagesStateErrorImpl) _then)
- : super(_value, _then);
+ __$$NewMessagesStateErrorImplCopyWithImpl(
+ _$NewMessagesStateErrorImpl _value,
+ $Res Function(_$NewMessagesStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NewMessagesState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$NewMessagesStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$NewMessagesStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -547,8 +552,11 @@ class _$NewMessagesStateErrorImpl implements NewMessagesStateError {
@override
@pragma('vm:prefer-inline')
_$$NewMessagesStateErrorImplCopyWith<_$NewMessagesStateErrorImpl>
- get copyWith => __$$NewMessagesStateErrorImplCopyWithImpl<
- _$NewMessagesStateErrorImpl>(this, _$identity);
+ get copyWith =>
+ __$$NewMessagesStateErrorImplCopyWithImpl<_$NewMessagesStateErrorImpl>(
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
@@ -635,5 +643,5 @@ abstract class NewMessagesStateError implements NewMessagesState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$NewMessagesStateErrorImplCopyWith<_$NewMessagesStateErrorImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/lib/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_state.freezed.dart b/lib/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_state.freezed.dart
index d634b318..6a162c25 100644
--- a/lib/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_state.freezed.dart
+++ b/lib/features/bottom_navigation_bar/presentation/bloc/notifications_cubit/notifications_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'notifications_state.dart';
T _$identity(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 _$NotificationsState {
@@ -21,46 +22,43 @@ mixin _$NotificationsState {
TResult Function() $default, {
required TResult Function() empty,
required TResult Function(
- List notifications, int notificationsCount)
- loaded,
+ List notifications,
+ int notificationsCount,
+ )
+ loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
TResult Function()? empty,
TResult Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_NotificationsState value) $default, {
required TResult Function(NotificationsStateEmpty value) empty,
required TResult Function(NotificationsStateLoaded value) loaded,
required TResult Function(NotificationsStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_NotificationsState value)? $default, {
TResult? Function(NotificationsStateEmpty value)? empty,
TResult? Function(NotificationsStateLoaded value)? loaded,
TResult? Function(NotificationsStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_NotificationsState value)? $default, {
@@ -68,15 +66,15 @@ mixin _$NotificationsState {
TResult Function(NotificationsStateLoaded value)? loaded,
TResult Function(NotificationsStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $NotificationsStateCopyWith<$Res> {
factory $NotificationsStateCopyWith(
- NotificationsState value, $Res Function(NotificationsState) then) =
- _$NotificationsStateCopyWithImpl<$Res, NotificationsState>;
+ NotificationsState value,
+ $Res Function(NotificationsState) then,
+ ) = _$NotificationsStateCopyWithImpl<$Res, NotificationsState>;
}
/// @nodoc
@@ -95,18 +93,20 @@ class _$NotificationsStateCopyWithImpl<$Res, $Val extends NotificationsState>
/// @nodoc
abstract class _$$NotificationsStateImplCopyWith<$Res> {
- factory _$$NotificationsStateImplCopyWith(_$NotificationsStateImpl value,
- $Res Function(_$NotificationsStateImpl) then) =
- __$$NotificationsStateImplCopyWithImpl<$Res>;
+ factory _$$NotificationsStateImplCopyWith(
+ _$NotificationsStateImpl value,
+ $Res Function(_$NotificationsStateImpl) then,
+ ) = __$$NotificationsStateImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$NotificationsStateImplCopyWithImpl<$Res>
extends _$NotificationsStateCopyWithImpl<$Res, _$NotificationsStateImpl>
implements _$$NotificationsStateImplCopyWith<$Res> {
- __$$NotificationsStateImplCopyWithImpl(_$NotificationsStateImpl _value,
- $Res Function(_$NotificationsStateImpl) _then)
- : super(_value, _then);
+ __$$NotificationsStateImplCopyWithImpl(
+ _$NotificationsStateImpl _value,
+ $Res Function(_$NotificationsStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NotificationsState
/// with the given fields replaced by the non-null parameter values.
@@ -137,8 +137,10 @@ class _$NotificationsStateImpl implements _NotificationsState {
TResult Function() $default, {
required TResult Function() empty,
required TResult Function(
- List notifications, int notificationsCount)
- loaded,
+ List notifications,
+ int notificationsCount,
+ )
+ loaded,
required TResult Function(String errorMessage) error,
}) {
return $default();
@@ -150,7 +152,7 @@ class _$NotificationsStateImpl implements _NotificationsState {
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult? Function(String errorMessage)? error,
}) {
return $default?.call();
@@ -162,7 +164,7 @@ class _$NotificationsStateImpl implements _NotificationsState {
TResult Function()? $default, {
TResult Function()? empty,
TResult Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
}) {
@@ -217,20 +219,20 @@ abstract class _NotificationsState implements NotificationsState {
/// @nodoc
abstract class _$$NotificationsStateEmptyImplCopyWith<$Res> {
factory _$$NotificationsStateEmptyImplCopyWith(
- _$NotificationsStateEmptyImpl value,
- $Res Function(_$NotificationsStateEmptyImpl) then) =
- __$$NotificationsStateEmptyImplCopyWithImpl<$Res>;
+ _$NotificationsStateEmptyImpl value,
+ $Res Function(_$NotificationsStateEmptyImpl) then,
+ ) = __$$NotificationsStateEmptyImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$NotificationsStateEmptyImplCopyWithImpl<$Res>
- extends _$NotificationsStateCopyWithImpl<$Res,
- _$NotificationsStateEmptyImpl>
+ extends
+ _$NotificationsStateCopyWithImpl<$Res, _$NotificationsStateEmptyImpl>
implements _$$NotificationsStateEmptyImplCopyWith<$Res> {
__$$NotificationsStateEmptyImplCopyWithImpl(
- _$NotificationsStateEmptyImpl _value,
- $Res Function(_$NotificationsStateEmptyImpl) _then)
- : super(_value, _then);
+ _$NotificationsStateEmptyImpl _value,
+ $Res Function(_$NotificationsStateEmptyImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NotificationsState
/// with the given fields replaced by the non-null parameter values.
@@ -262,8 +264,10 @@ class _$NotificationsStateEmptyImpl implements NotificationsStateEmpty {
TResult Function() $default, {
required TResult Function() empty,
required TResult Function(
- List notifications, int notificationsCount)
- loaded,
+ List notifications,
+ int notificationsCount,
+ )
+ loaded,
required TResult Function(String errorMessage) error,
}) {
return empty();
@@ -275,7 +279,7 @@ class _$NotificationsStateEmptyImpl implements NotificationsStateEmpty {
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult? Function(String errorMessage)? error,
}) {
return empty?.call();
@@ -287,7 +291,7 @@ class _$NotificationsStateEmptyImpl implements NotificationsStateEmpty {
TResult Function()? $default, {
TResult Function()? empty,
TResult Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
}) {
@@ -342,51 +346,52 @@ abstract class NotificationsStateEmpty implements NotificationsState {
/// @nodoc
abstract class _$$NotificationsStateLoadedImplCopyWith<$Res> {
factory _$$NotificationsStateLoadedImplCopyWith(
- _$NotificationsStateLoadedImpl value,
- $Res Function(_$NotificationsStateLoadedImpl) then) =
- __$$NotificationsStateLoadedImplCopyWithImpl<$Res>;
+ _$NotificationsStateLoadedImpl value,
+ $Res Function(_$NotificationsStateLoadedImpl) then,
+ ) = __$$NotificationsStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({List notifications, int notificationsCount});
}
/// @nodoc
class __$$NotificationsStateLoadedImplCopyWithImpl<$Res>
- extends _$NotificationsStateCopyWithImpl<$Res,
- _$NotificationsStateLoadedImpl>
+ extends
+ _$NotificationsStateCopyWithImpl<$Res, _$NotificationsStateLoadedImpl>
implements _$$NotificationsStateLoadedImplCopyWith<$Res> {
__$$NotificationsStateLoadedImplCopyWithImpl(
- _$NotificationsStateLoadedImpl _value,
- $Res Function(_$NotificationsStateLoadedImpl) _then)
- : super(_value, _then);
+ _$NotificationsStateLoadedImpl _value,
+ $Res Function(_$NotificationsStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NotificationsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? notifications = null,
- Object? notificationsCount = null,
- }) {
- return _then(_$NotificationsStateLoadedImpl(
- notifications: null == notifications
- ? _value._notifications
- : notifications // ignore: cast_nullable_to_non_nullable
- as List,
- notificationsCount: null == notificationsCount
- ? _value.notificationsCount
- : notificationsCount // ignore: cast_nullable_to_non_nullable
- as int,
- ));
+ $Res call({Object? notifications = null, Object? notificationsCount = null}) {
+ return _then(
+ _$NotificationsStateLoadedImpl(
+ notifications:
+ null == notifications
+ ? _value._notifications
+ : notifications // ignore: cast_nullable_to_non_nullable
+ as List,
+ notificationsCount:
+ null == notificationsCount
+ ? _value.notificationsCount
+ : notificationsCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ ),
+ );
}
}
/// @nodoc
class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
- const _$NotificationsStateLoadedImpl(
- {required final List notifications,
- required this.notificationsCount})
- : _notifications = notifications;
+ const _$NotificationsStateLoadedImpl({
+ required final List notifications,
+ required this.notificationsCount,
+ }) : _notifications = notifications;
final List _notifications;
@override
@@ -409,15 +414,20 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$NotificationsStateLoadedImpl &&
- const DeepCollectionEquality()
- .equals(other._notifications, _notifications) &&
+ const DeepCollectionEquality().equals(
+ other._notifications,
+ _notifications,
+ ) &&
(identical(other.notificationsCount, notificationsCount) ||
other.notificationsCount == notificationsCount));
}
@override
- int get hashCode => Object.hash(runtimeType,
- const DeepCollectionEquality().hash(_notifications), notificationsCount);
+ int get hashCode => Object.hash(
+ runtimeType,
+ const DeepCollectionEquality().hash(_notifications),
+ notificationsCount,
+ );
/// Create a copy of NotificationsState
/// with the given fields replaced by the non-null parameter values.
@@ -425,8 +435,9 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
@override
@pragma('vm:prefer-inline')
_$$NotificationsStateLoadedImplCopyWith<_$NotificationsStateLoadedImpl>
- get copyWith => __$$NotificationsStateLoadedImplCopyWithImpl<
- _$NotificationsStateLoadedImpl>(this, _$identity);
+ get copyWith => __$$NotificationsStateLoadedImplCopyWithImpl<
+ _$NotificationsStateLoadedImpl
+ >(this, _$identity);
@override
@optionalTypeArgs
@@ -434,8 +445,10 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
TResult Function() $default, {
required TResult Function() empty,
required TResult Function(
- List notifications, int notificationsCount)
- loaded,
+ List notifications,
+ int notificationsCount,
+ )
+ loaded,
required TResult Function(String errorMessage) error,
}) {
return loaded(notifications, notificationsCount);
@@ -447,7 +460,7 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult? Function(String errorMessage)? error,
}) {
return loaded?.call(notifications, notificationsCount);
@@ -459,7 +472,7 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
TResult Function()? $default, {
TResult Function()? empty,
TResult Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
}) {
@@ -508,9 +521,10 @@ class _$NotificationsStateLoadedImpl implements NotificationsStateLoaded {
}
abstract class NotificationsStateLoaded implements NotificationsState {
- const factory NotificationsStateLoaded(
- {required final List notifications,
- required final int notificationsCount}) = _$NotificationsStateLoadedImpl;
+ const factory NotificationsStateLoaded({
+ required final List notifications,
+ required final int notificationsCount,
+ }) = _$NotificationsStateLoadedImpl;
List get notifications;
int get notificationsCount;
@@ -519,42 +533,43 @@ abstract class NotificationsStateLoaded implements NotificationsState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$NotificationsStateLoadedImplCopyWith<_$NotificationsStateLoadedImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class _$$NotificationsStateErrorImplCopyWith<$Res> {
factory _$$NotificationsStateErrorImplCopyWith(
- _$NotificationsStateErrorImpl value,
- $Res Function(_$NotificationsStateErrorImpl) then) =
- __$$NotificationsStateErrorImplCopyWithImpl<$Res>;
+ _$NotificationsStateErrorImpl value,
+ $Res Function(_$NotificationsStateErrorImpl) then,
+ ) = __$$NotificationsStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
/// @nodoc
class __$$NotificationsStateErrorImplCopyWithImpl<$Res>
- extends _$NotificationsStateCopyWithImpl<$Res,
- _$NotificationsStateErrorImpl>
+ extends
+ _$NotificationsStateCopyWithImpl<$Res, _$NotificationsStateErrorImpl>
implements _$$NotificationsStateErrorImplCopyWith<$Res> {
__$$NotificationsStateErrorImplCopyWithImpl(
- _$NotificationsStateErrorImpl _value,
- $Res Function(_$NotificationsStateErrorImpl) _then)
- : super(_value, _then);
+ _$NotificationsStateErrorImpl _value,
+ $Res Function(_$NotificationsStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of NotificationsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$NotificationsStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$NotificationsStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -589,8 +604,9 @@ class _$NotificationsStateErrorImpl implements NotificationsStateError {
@override
@pragma('vm:prefer-inline')
_$$NotificationsStateErrorImplCopyWith<_$NotificationsStateErrorImpl>
- get copyWith => __$$NotificationsStateErrorImplCopyWithImpl<
- _$NotificationsStateErrorImpl>(this, _$identity);
+ get copyWith => __$$NotificationsStateErrorImplCopyWithImpl<
+ _$NotificationsStateErrorImpl
+ >(this, _$identity);
@override
@optionalTypeArgs
@@ -598,8 +614,10 @@ class _$NotificationsStateErrorImpl implements NotificationsStateError {
TResult Function() $default, {
required TResult Function() empty,
required TResult Function(
- List notifications, int notificationsCount)
- loaded,
+ List notifications,
+ int notificationsCount,
+ )
+ loaded,
required TResult Function(String errorMessage) error,
}) {
return error(errorMessage);
@@ -611,7 +629,7 @@ class _$NotificationsStateErrorImpl implements NotificationsStateError {
TResult? Function()? $default, {
TResult? Function()? empty,
TResult? Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult? Function(String errorMessage)? error,
}) {
return error?.call(errorMessage);
@@ -623,7 +641,7 @@ class _$NotificationsStateErrorImpl implements NotificationsStateError {
TResult Function()? $default, {
TResult Function()? empty,
TResult Function(List notifications, int notificationsCount)?
- loaded,
+ loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
}) {
@@ -681,5 +699,5 @@ abstract class NotificationsStateError implements NotificationsState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$NotificationsStateErrorImplCopyWith<_$NotificationsStateErrorImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/lib/features/bottom_navigation_bar/presentation/bloc/profile_avatar_cubit/profile_avatar_state.freezed.dart b/lib/features/bottom_navigation_bar/presentation/bloc/profile_avatar_cubit/profile_avatar_state.freezed.dart
index b629d579..270c829f 100644
--- a/lib/features/bottom_navigation_bar/presentation/bloc/profile_avatar_cubit/profile_avatar_state.freezed.dart
+++ b/lib/features/bottom_navigation_bar/presentation/bloc/profile_avatar_cubit/profile_avatar_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'profile_avatar_state.dart';
T _$identity(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 _$ProfileAvatarState {
@@ -22,16 +23,14 @@ mixin _$ProfileAvatarState {
required TResult Function() loading,
required TResult Function(ProfileModel profile) loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? loading,
TResult? Function(ProfileModel profile)? loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$ProfileAvatarState {
TResult Function(ProfileModel profile)? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_ProfileAvatarState value) $default, {
required TResult Function(ProfileAvatarStateLoading value) loading,
required TResult Function(ProfileAvatarStateLoaded value) loaded,
required TResult Function(ProfileAvatarStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_ProfileAvatarState value)? $default, {
TResult? Function(ProfileAvatarStateLoading value)? loading,
TResult? Function(ProfileAvatarStateLoaded value)? loaded,
TResult? Function(ProfileAvatarStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_ProfileAvatarState value)? $default, {
@@ -64,15 +60,15 @@ mixin _$ProfileAvatarState {
TResult Function(ProfileAvatarStateLoaded value)? loaded,
TResult Function(ProfileAvatarStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ProfileAvatarStateCopyWith<$Res> {
factory $ProfileAvatarStateCopyWith(
- ProfileAvatarState value, $Res Function(ProfileAvatarState) then) =
- _$ProfileAvatarStateCopyWithImpl<$Res, ProfileAvatarState>;
+ ProfileAvatarState value,
+ $Res Function(ProfileAvatarState) then,
+ ) = _$ProfileAvatarStateCopyWithImpl<$Res, ProfileAvatarState>;
}
/// @nodoc
@@ -91,18 +87,20 @@ class _$ProfileAvatarStateCopyWithImpl<$Res, $Val extends ProfileAvatarState>
/// @nodoc
abstract class _$$ProfileAvatarStateImplCopyWith<$Res> {
- factory _$$ProfileAvatarStateImplCopyWith(_$ProfileAvatarStateImpl value,
- $Res Function(_$ProfileAvatarStateImpl) then) =
- __$$ProfileAvatarStateImplCopyWithImpl<$Res>;
+ factory _$$ProfileAvatarStateImplCopyWith(
+ _$ProfileAvatarStateImpl value,
+ $Res Function(_$ProfileAvatarStateImpl) then,
+ ) = __$$ProfileAvatarStateImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$ProfileAvatarStateImplCopyWithImpl<$Res>
extends _$ProfileAvatarStateCopyWithImpl<$Res, _$ProfileAvatarStateImpl>
implements _$$ProfileAvatarStateImplCopyWith<$Res> {
- __$$ProfileAvatarStateImplCopyWithImpl(_$ProfileAvatarStateImpl _value,
- $Res Function(_$ProfileAvatarStateImpl) _then)
- : super(_value, _then);
+ __$$ProfileAvatarStateImplCopyWithImpl(
+ _$ProfileAvatarStateImpl _value,
+ $Res Function(_$ProfileAvatarStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ProfileAvatarState
/// with the given fields replaced by the non-null parameter values.
@@ -209,20 +207,20 @@ abstract class _ProfileAvatarState implements ProfileAvatarState {
/// @nodoc
abstract class _$$ProfileAvatarStateLoadingImplCopyWith<$Res> {
factory _$$ProfileAvatarStateLoadingImplCopyWith(
- _$ProfileAvatarStateLoadingImpl value,
- $Res Function(_$ProfileAvatarStateLoadingImpl) then) =
- __$$ProfileAvatarStateLoadingImplCopyWithImpl<$Res>;
+ _$ProfileAvatarStateLoadingImpl value,
+ $Res Function(_$ProfileAvatarStateLoadingImpl) then,
+ ) = __$$ProfileAvatarStateLoadingImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$ProfileAvatarStateLoadingImplCopyWithImpl<$Res>
- extends _$ProfileAvatarStateCopyWithImpl<$Res,
- _$ProfileAvatarStateLoadingImpl>
+ extends
+ _$ProfileAvatarStateCopyWithImpl<$Res, _$ProfileAvatarStateLoadingImpl>
implements _$$ProfileAvatarStateLoadingImplCopyWith<$Res> {
__$$ProfileAvatarStateLoadingImplCopyWithImpl(
- _$ProfileAvatarStateLoadingImpl _value,
- $Res Function(_$ProfileAvatarStateLoadingImpl) _then)
- : super(_value, _then);
+ _$ProfileAvatarStateLoadingImpl _value,
+ $Res Function(_$ProfileAvatarStateLoadingImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ProfileAvatarState
/// with the given fields replaced by the non-null parameter values.
@@ -330,9 +328,9 @@ abstract class ProfileAvatarStateLoading implements ProfileAvatarState {
/// @nodoc
abstract class _$$ProfileAvatarStateLoadedImplCopyWith<$Res> {
factory _$$ProfileAvatarStateLoadedImplCopyWith(
- _$ProfileAvatarStateLoadedImpl value,
- $Res Function(_$ProfileAvatarStateLoadedImpl) then) =
- __$$ProfileAvatarStateLoadedImplCopyWithImpl<$Res>;
+ _$ProfileAvatarStateLoadedImpl value,
+ $Res Function(_$ProfileAvatarStateLoadedImpl) then,
+ ) = __$$ProfileAvatarStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({ProfileModel profile});
@@ -341,27 +339,28 @@ abstract class _$$ProfileAvatarStateLoadedImplCopyWith<$Res> {
/// @nodoc
class __$$ProfileAvatarStateLoadedImplCopyWithImpl<$Res>
- extends _$ProfileAvatarStateCopyWithImpl<$Res,
- _$ProfileAvatarStateLoadedImpl>
+ extends
+ _$ProfileAvatarStateCopyWithImpl<$Res, _$ProfileAvatarStateLoadedImpl>
implements _$$ProfileAvatarStateLoadedImplCopyWith<$Res> {
__$$ProfileAvatarStateLoadedImplCopyWithImpl(
- _$ProfileAvatarStateLoadedImpl _value,
- $Res Function(_$ProfileAvatarStateLoadedImpl) _then)
- : super(_value, _then);
+ _$ProfileAvatarStateLoadedImpl _value,
+ $Res Function(_$ProfileAvatarStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ProfileAvatarState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? profile = null,
- }) {
- return _then(_$ProfileAvatarStateLoadedImpl(
- profile: null == profile
- ? _value.profile
- : profile // ignore: cast_nullable_to_non_nullable
- as ProfileModel,
- ));
+ $Res call({Object? profile = null}) {
+ return _then(
+ _$ProfileAvatarStateLoadedImpl(
+ profile:
+ null == profile
+ ? _value.profile
+ : profile // ignore: cast_nullable_to_non_nullable
+ as ProfileModel,
+ ),
+ );
}
/// Create a copy of ProfileAvatarState
@@ -405,8 +404,9 @@ class _$ProfileAvatarStateLoadedImpl implements ProfileAvatarStateLoaded {
@override
@pragma('vm:prefer-inline')
_$$ProfileAvatarStateLoadedImplCopyWith<_$ProfileAvatarStateLoadedImpl>
- get copyWith => __$$ProfileAvatarStateLoadedImplCopyWithImpl<
- _$ProfileAvatarStateLoadedImpl>(this, _$identity);
+ get copyWith => __$$ProfileAvatarStateLoadedImplCopyWithImpl<
+ _$ProfileAvatarStateLoadedImpl
+ >(this, _$identity);
@override
@optionalTypeArgs
@@ -484,8 +484,9 @@ class _$ProfileAvatarStateLoadedImpl implements ProfileAvatarStateLoaded {
}
abstract class ProfileAvatarStateLoaded implements ProfileAvatarState {
- const factory ProfileAvatarStateLoaded(
- {required final ProfileModel profile}) = _$ProfileAvatarStateLoadedImpl;
+ const factory ProfileAvatarStateLoaded({
+ required final ProfileModel profile,
+ }) = _$ProfileAvatarStateLoadedImpl;
ProfileModel get profile;
@@ -493,42 +494,43 @@ abstract class ProfileAvatarStateLoaded implements ProfileAvatarState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ProfileAvatarStateLoadedImplCopyWith<_$ProfileAvatarStateLoadedImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class _$$ProfileAvatarStateErrorImplCopyWith<$Res> {
factory _$$ProfileAvatarStateErrorImplCopyWith(
- _$ProfileAvatarStateErrorImpl value,
- $Res Function(_$ProfileAvatarStateErrorImpl) then) =
- __$$ProfileAvatarStateErrorImplCopyWithImpl<$Res>;
+ _$ProfileAvatarStateErrorImpl value,
+ $Res Function(_$ProfileAvatarStateErrorImpl) then,
+ ) = __$$ProfileAvatarStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
/// @nodoc
class __$$ProfileAvatarStateErrorImplCopyWithImpl<$Res>
- extends _$ProfileAvatarStateCopyWithImpl<$Res,
- _$ProfileAvatarStateErrorImpl>
+ extends
+ _$ProfileAvatarStateCopyWithImpl<$Res, _$ProfileAvatarStateErrorImpl>
implements _$$ProfileAvatarStateErrorImplCopyWith<$Res> {
__$$ProfileAvatarStateErrorImplCopyWithImpl(
- _$ProfileAvatarStateErrorImpl _value,
- $Res Function(_$ProfileAvatarStateErrorImpl) _then)
- : super(_value, _then);
+ _$ProfileAvatarStateErrorImpl _value,
+ $Res Function(_$ProfileAvatarStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ProfileAvatarState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$ProfileAvatarStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$ProfileAvatarStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -563,8 +565,9 @@ class _$ProfileAvatarStateErrorImpl implements ProfileAvatarStateError {
@override
@pragma('vm:prefer-inline')
_$$ProfileAvatarStateErrorImplCopyWith<_$ProfileAvatarStateErrorImpl>
- get copyWith => __$$ProfileAvatarStateErrorImplCopyWithImpl<
- _$ProfileAvatarStateErrorImpl>(this, _$identity);
+ get copyWith => __$$ProfileAvatarStateErrorImplCopyWithImpl<
+ _$ProfileAvatarStateErrorImpl
+ >(this, _$identity);
@override
@optionalTypeArgs
@@ -651,5 +654,5 @@ abstract class ProfileAvatarStateError implements ProfileAvatarState {
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ProfileAvatarStateErrorImplCopyWith<_$ProfileAvatarStateErrorImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
diff --git a/lib/features/calendar/models/calendar_model.freezed.dart b/lib/features/calendar/models/calendar_model.freezed.dart
index d10fc8f2..b7ca39ce 100644
--- a/lib/features/calendar/models/calendar_model.freezed.dart
+++ b/lib/features/calendar/models/calendar_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'calendar_model.dart';
T _$identity(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',
+);
CalendarModel _$CalendarModelFromJson(Map json) {
return _CalendarModel.fromJson(json);
@@ -38,13 +39,15 @@ mixin _$CalendarModel {
/// @nodoc
abstract class $CalendarModelCopyWith<$Res> {
factory $CalendarModelCopyWith(
- CalendarModel value, $Res Function(CalendarModel) then) =
- _$CalendarModelCopyWithImpl<$Res, CalendarModel>;
+ CalendarModel value,
+ $Res Function(CalendarModel) then,
+ ) = _$CalendarModelCopyWithImpl<$Res, CalendarModel>;
@useResult
- $Res call(
- {String date,
- bool is_current_day_included_in_the_chosen_diet_progression,
- Object? diary});
+ $Res call({
+ String date,
+ bool is_current_day_included_in_the_chosen_diet_progression,
+ Object? diary,
+ });
}
/// @nodoc
@@ -66,18 +69,23 @@ class _$CalendarModelCopyWithImpl<$Res, $Val extends CalendarModel>
Object? is_current_day_included_in_the_chosen_diet_progression = null,
Object? diary = freezed,
}) {
- return _then(_value.copyWith(
- date: null == date
- ? _value.date
- : date // ignore: cast_nullable_to_non_nullable
- as String,
- is_current_day_included_in_the_chosen_diet_progression: null ==
- is_current_day_included_in_the_chosen_diet_progression
- ? _value.is_current_day_included_in_the_chosen_diet_progression
- : is_current_day_included_in_the_chosen_diet_progression // ignore: cast_nullable_to_non_nullable
- as bool,
- diary: freezed == diary ? _value.diary : diary,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ date:
+ null == date
+ ? _value.date
+ : date // ignore: cast_nullable_to_non_nullable
+ as String,
+ is_current_day_included_in_the_chosen_diet_progression:
+ null == is_current_day_included_in_the_chosen_diet_progression
+ ? _value
+ .is_current_day_included_in_the_chosen_diet_progression
+ : is_current_day_included_in_the_chosen_diet_progression // ignore: cast_nullable_to_non_nullable
+ as bool,
+ diary: freezed == diary ? _value.diary : diary,
+ )
+ as $Val,
+ );
}
}
@@ -85,14 +93,16 @@ class _$CalendarModelCopyWithImpl<$Res, $Val extends CalendarModel>
abstract class _$$CalendarModelImplCopyWith<$Res>
implements $CalendarModelCopyWith<$Res> {
factory _$$CalendarModelImplCopyWith(
- _$CalendarModelImpl value, $Res Function(_$CalendarModelImpl) then) =
- __$$CalendarModelImplCopyWithImpl<$Res>;
+ _$CalendarModelImpl value,
+ $Res Function(_$CalendarModelImpl) then,
+ ) = __$$CalendarModelImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {String date,
- bool is_current_day_included_in_the_chosen_diet_progression,
- Object? diary});
+ $Res call({
+ String date,
+ bool is_current_day_included_in_the_chosen_diet_progression,
+ Object? diary,
+ });
}
/// @nodoc
@@ -100,8 +110,9 @@ class __$$CalendarModelImplCopyWithImpl<$Res>
extends _$CalendarModelCopyWithImpl<$Res, _$CalendarModelImpl>
implements _$$CalendarModelImplCopyWith<$Res> {
__$$CalendarModelImplCopyWithImpl(
- _$CalendarModelImpl _value, $Res Function(_$CalendarModelImpl) _then)
- : super(_value, _then);
+ _$CalendarModelImpl _value,
+ $Res Function(_$CalendarModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CalendarModel
/// with the given fields replaced by the non-null parameter values.
@@ -112,28 +123,32 @@ class __$$CalendarModelImplCopyWithImpl<$Res>
Object? is_current_day_included_in_the_chosen_diet_progression = null,
Object? diary = freezed,
}) {
- return _then(_$CalendarModelImpl(
- date: null == date
- ? _value.date
- : date // ignore: cast_nullable_to_non_nullable
- as String,
- is_current_day_included_in_the_chosen_diet_progression: null ==
- is_current_day_included_in_the_chosen_diet_progression
- ? _value.is_current_day_included_in_the_chosen_diet_progression
- : is_current_day_included_in_the_chosen_diet_progression // ignore: cast_nullable_to_non_nullable
- as bool,
- diary: freezed == diary ? _value.diary : diary,
- ));
+ return _then(
+ _$CalendarModelImpl(
+ date:
+ null == date
+ ? _value.date
+ : date // ignore: cast_nullable_to_non_nullable
+ as String,
+ is_current_day_included_in_the_chosen_diet_progression:
+ null == is_current_day_included_in_the_chosen_diet_progression
+ ? _value.is_current_day_included_in_the_chosen_diet_progression
+ : is_current_day_included_in_the_chosen_diet_progression // ignore: cast_nullable_to_non_nullable
+ as bool,
+ diary: freezed == diary ? _value.diary : diary,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$CalendarModelImpl implements _CalendarModel {
- const _$CalendarModelImpl(
- {required this.date,
- required this.is_current_day_included_in_the_chosen_diet_progression,
- this.diary});
+ const _$CalendarModelImpl({
+ required this.date,
+ required this.is_current_day_included_in_the_chosen_diet_progression,
+ this.diary,
+ });
factory _$CalendarModelImpl.fromJson(Map json) =>
_$$CalendarModelImplFromJson(json);
@@ -157,9 +172,9 @@ class _$CalendarModelImpl implements _CalendarModel {
other is _$CalendarModelImpl &&
(identical(other.date, date) || other.date == date) &&
(identical(
- other
- .is_current_day_included_in_the_chosen_diet_progression,
- is_current_day_included_in_the_chosen_diet_progression) ||
+ other.is_current_day_included_in_the_chosen_diet_progression,
+ is_current_day_included_in_the_chosen_diet_progression,
+ ) ||
other.is_current_day_included_in_the_chosen_diet_progression ==
is_current_day_included_in_the_chosen_diet_progression) &&
const DeepCollectionEquality().equals(other.diary, diary));
@@ -168,10 +183,11 @@ class _$CalendarModelImpl implements _CalendarModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
- runtimeType,
- date,
- is_current_day_included_in_the_chosen_diet_progression,
- const DeepCollectionEquality().hash(diary));
+ runtimeType,
+ date,
+ is_current_day_included_in_the_chosen_diet_progression,
+ const DeepCollectionEquality().hash(diary),
+ );
/// Create a copy of CalendarModel
/// with the given fields replaced by the non-null parameter values.
@@ -183,18 +199,16 @@ class _$CalendarModelImpl implements _CalendarModel {
@override
Map toJson() {
- return _$$CalendarModelImplToJson(
- this,
- );
+ return _$$CalendarModelImplToJson(this);
}
}
abstract class _CalendarModel implements CalendarModel {
- const factory _CalendarModel(
- {required final String date,
- required final bool
- is_current_day_included_in_the_chosen_diet_progression,
- final Object? diary}) = _$CalendarModelImpl;
+ const factory _CalendarModel({
+ required final String date,
+ required final bool is_current_day_included_in_the_chosen_diet_progression,
+ final Object? diary,
+ }) = _$CalendarModelImpl;
factory _CalendarModel.fromJson(Map json) =
_$CalendarModelImpl.fromJson;
diff --git a/lib/features/calendar/presentation/bloc/calendar_state.freezed.dart b/lib/features/calendar/presentation/bloc/calendar_state.freezed.dart
index 0e7bdbcd..442215e5 100644
--- a/lib/features/calendar/presentation/bloc/calendar_state.freezed.dart
+++ b/lib/features/calendar/presentation/bloc/calendar_state.freezed.dart
@@ -12,7 +12,8 @@ part of 'calendar_state.dart';
T _$identity(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 _$CalendarState {
@@ -22,16 +23,14 @@ mixin _$CalendarState {
required TResult Function() loading,
required TResult Function(List calendarList) loaded,
required TResult Function(String errorMessage) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull(
TResult? Function()? $default, {
TResult? Function()? loading,
TResult? Function(List calendarList)? loaded,
TResult? Function(String errorMessage)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen(
TResult Function()? $default, {
@@ -39,24 +38,21 @@ mixin _$CalendarState {
TResult Function(List calendarList)? loaded,
TResult Function(String errorMessage)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map(
TResult Function(_CalendarState value) $default, {
required TResult Function(CalendarStateLoading value) loading,
required TResult Function(CalendarStateLoaded value) loaded,
required TResult Function(CalendarStateError value) error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull(
TResult? Function(_CalendarState value)? $default, {
TResult? Function(CalendarStateLoading value)? loading,
TResult? Function(CalendarStateLoaded value)? loaded,
TResult? Function(CalendarStateError value)? error,
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap(
TResult Function(_CalendarState value)? $default, {
@@ -64,15 +60,15 @@ mixin _$CalendarState {
TResult Function(CalendarStateLoaded value)? loaded,
TResult Function(CalendarStateError value)? error,
required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
+ }) => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CalendarStateCopyWith<$Res> {
factory $CalendarStateCopyWith(
- CalendarState value, $Res Function(CalendarState) then) =
- _$CalendarStateCopyWithImpl<$Res, CalendarState>;
+ CalendarState value,
+ $Res Function(CalendarState) then,
+ ) = _$CalendarStateCopyWithImpl<$Res, CalendarState>;
}
/// @nodoc
@@ -92,8 +88,9 @@ class _$CalendarStateCopyWithImpl<$Res, $Val extends CalendarState>
/// @nodoc
abstract class _$$CalendarStateImplCopyWith<$Res> {
factory _$$CalendarStateImplCopyWith(
- _$CalendarStateImpl value, $Res Function(_$CalendarStateImpl) then) =
- __$$CalendarStateImplCopyWithImpl<$Res>;
+ _$CalendarStateImpl value,
+ $Res Function(_$CalendarStateImpl) then,
+ ) = __$$CalendarStateImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -101,8 +98,9 @@ class __$$CalendarStateImplCopyWithImpl<$Res>
extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateImpl>
implements _$$CalendarStateImplCopyWith<$Res> {
__$$CalendarStateImplCopyWithImpl(
- _$CalendarStateImpl _value, $Res Function(_$CalendarStateImpl) _then)
- : super(_value, _then);
+ _$CalendarStateImpl _value,
+ $Res Function(_$CalendarStateImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@@ -208,18 +206,20 @@ abstract class _CalendarState implements CalendarState {
/// @nodoc
abstract class _$$CalendarStateLoadingImplCopyWith<$Res> {
- factory _$$CalendarStateLoadingImplCopyWith(_$CalendarStateLoadingImpl value,
- $Res Function(_$CalendarStateLoadingImpl) then) =
- __$$CalendarStateLoadingImplCopyWithImpl<$Res>;
+ factory _$$CalendarStateLoadingImplCopyWith(
+ _$CalendarStateLoadingImpl value,
+ $Res Function(_$CalendarStateLoadingImpl) then,
+ ) = __$$CalendarStateLoadingImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$CalendarStateLoadingImplCopyWithImpl<$Res>
extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateLoadingImpl>
implements _$$CalendarStateLoadingImplCopyWith<$Res> {
- __$$CalendarStateLoadingImplCopyWithImpl(_$CalendarStateLoadingImpl _value,
- $Res Function(_$CalendarStateLoadingImpl) _then)
- : super(_value, _then);
+ __$$CalendarStateLoadingImplCopyWithImpl(
+ _$CalendarStateLoadingImpl _value,
+ $Res Function(_$CalendarStateLoadingImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@@ -326,9 +326,10 @@ abstract class CalendarStateLoading implements CalendarState {
/// @nodoc
abstract class _$$CalendarStateLoadedImplCopyWith<$Res> {
- factory _$$CalendarStateLoadedImplCopyWith(_$CalendarStateLoadedImpl value,
- $Res Function(_$CalendarStateLoadedImpl) then) =
- __$$CalendarStateLoadedImplCopyWithImpl<$Res>;
+ factory _$$CalendarStateLoadedImplCopyWith(
+ _$CalendarStateLoadedImpl value,
+ $Res Function(_$CalendarStateLoadedImpl) then,
+ ) = __$$CalendarStateLoadedImplCopyWithImpl<$Res>;
@useResult
$Res call({List calendarList});
}
@@ -337,32 +338,34 @@ abstract class _$$CalendarStateLoadedImplCopyWith<$Res> {
class __$$CalendarStateLoadedImplCopyWithImpl<$Res>
extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateLoadedImpl>
implements _$$CalendarStateLoadedImplCopyWith<$Res> {
- __$$CalendarStateLoadedImplCopyWithImpl(_$CalendarStateLoadedImpl _value,
- $Res Function(_$CalendarStateLoadedImpl) _then)
- : super(_value, _then);
+ __$$CalendarStateLoadedImplCopyWithImpl(
+ _$CalendarStateLoadedImpl _value,
+ $Res Function(_$CalendarStateLoadedImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? calendarList = null,
- }) {
- return _then(_$CalendarStateLoadedImpl(
- calendarList: null == calendarList
- ? _value._calendarList
- : calendarList // ignore: cast_nullable_to_non_nullable
- as List,
- ));
+ $Res call({Object? calendarList = null}) {
+ return _then(
+ _$CalendarStateLoadedImpl(
+ calendarList:
+ null == calendarList
+ ? _value._calendarList
+ : calendarList // ignore: cast_nullable_to_non_nullable
+ as List,
+ ),
+ );
}
}
/// @nodoc
class _$CalendarStateLoadedImpl implements CalendarStateLoaded {
- const _$CalendarStateLoadedImpl(
- {required final List calendarList})
- : _calendarList = calendarList;
+ const _$CalendarStateLoadedImpl({
+ required final List calendarList,
+ }) : _calendarList = calendarList;
final List _calendarList;
@override
@@ -382,13 +385,17 @@ class _$CalendarStateLoadedImpl implements CalendarStateLoaded {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CalendarStateLoadedImpl &&
- const DeepCollectionEquality()
- .equals(other._calendarList, _calendarList));
+ const DeepCollectionEquality().equals(
+ other._calendarList,
+ _calendarList,
+ ));
}
@override
int get hashCode => Object.hash(
- runtimeType, const DeepCollectionEquality().hash(_calendarList));
+ runtimeType,
+ const DeepCollectionEquality().hash(_calendarList),
+ );
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@@ -397,7 +404,9 @@ class _$CalendarStateLoadedImpl implements CalendarStateLoaded {
@pragma('vm:prefer-inline')
_$$CalendarStateLoadedImplCopyWith<_$CalendarStateLoadedImpl> get copyWith =>
__$$CalendarStateLoadedImplCopyWithImpl<_$CalendarStateLoadedImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
@@ -475,9 +484,9 @@ class _$CalendarStateLoadedImpl implements CalendarStateLoaded {
}
abstract class CalendarStateLoaded implements CalendarState {
- const factory CalendarStateLoaded(
- {required final List calendarList}) =
- _$CalendarStateLoadedImpl;
+ const factory CalendarStateLoaded({
+ required final List calendarList,
+ }) = _$CalendarStateLoadedImpl;
List get calendarList;
@@ -490,9 +499,10 @@ abstract class CalendarStateLoaded implements CalendarState {
/// @nodoc
abstract class _$$CalendarStateErrorImplCopyWith<$Res> {
- factory _$$CalendarStateErrorImplCopyWith(_$CalendarStateErrorImpl value,
- $Res Function(_$CalendarStateErrorImpl) then) =
- __$$CalendarStateErrorImplCopyWithImpl<$Res>;
+ factory _$$CalendarStateErrorImplCopyWith(
+ _$CalendarStateErrorImpl value,
+ $Res Function(_$CalendarStateErrorImpl) then,
+ ) = __$$CalendarStateErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String errorMessage});
}
@@ -501,23 +511,25 @@ abstract class _$$CalendarStateErrorImplCopyWith<$Res> {
class __$$CalendarStateErrorImplCopyWithImpl<$Res>
extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateErrorImpl>
implements _$$CalendarStateErrorImplCopyWith<$Res> {
- __$$CalendarStateErrorImplCopyWithImpl(_$CalendarStateErrorImpl _value,
- $Res Function(_$CalendarStateErrorImpl) _then)
- : super(_value, _then);
+ __$$CalendarStateErrorImplCopyWithImpl(
+ _$CalendarStateErrorImpl _value,
+ $Res Function(_$CalendarStateErrorImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? errorMessage = null,
- }) {
- return _then(_$CalendarStateErrorImpl(
- errorMessage: null == errorMessage
- ? _value.errorMessage
- : errorMessage // ignore: cast_nullable_to_non_nullable
- as String,
- ));
+ $Res call({Object? errorMessage = null}) {
+ return _then(
+ _$CalendarStateErrorImpl(
+ errorMessage:
+ null == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String,
+ ),
+ );
}
}
@@ -553,7 +565,9 @@ class _$CalendarStateErrorImpl implements CalendarStateError {
@pragma('vm:prefer-inline')
_$$CalendarStateErrorImplCopyWith<_$CalendarStateErrorImpl> get copyWith =>
__$$CalendarStateErrorImplCopyWithImpl<_$CalendarStateErrorImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
@optionalTypeArgs
diff --git a/lib/features/calendar/services/calendar_service.g.dart b/lib/features/calendar/services/calendar_service.g.dart
index 5055d002..4c32230a 100644
--- a/lib/features/calendar/services/calendar_service.g.dart
+++ b/lib/features/calendar/services/calendar_service.g.dart
@@ -36,11 +36,13 @@ class _CalendarService implements CalendarService {
final _result = await _dio.fetch>(_options);
late List _value;
try {
- _value = _result.data!
- .map(
- (dynamic i) => CalendarModel.fromJson(i as Map),
- )
- .toList();
+ _value =
+ _result.data!
+ .map(
+ (dynamic i) =>
+ CalendarModel.fromJson(i as Map),
+ )
+ .toList();
} on Object catch (e, s) {
errorLogger?.logError(e, s, _options);
rethrow;
diff --git a/lib/features/chat/models/chat_message_model.freezed.dart b/lib/features/chat/models/chat_message_model.freezed.dart
index 3cddc329..0d2f62c4 100644
--- a/lib/features/chat/models/chat_message_model.freezed.dart
+++ b/lib/features/chat/models/chat_message_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'chat_message_model.dart';
T _$identity(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',
+);
ChatMessageModel _$ChatMessageModelFromJson(Map json) {
return _ChatMessageModel.fromJson(json);
@@ -48,18 +49,20 @@ mixin _$ChatMessageModel {
/// @nodoc
abstract class $ChatMessageModelCopyWith<$Res> {
factory $ChatMessageModelCopyWith(
- ChatMessageModel value, $Res Function(ChatMessageModel) then) =
- _$ChatMessageModelCopyWithImpl<$Res, ChatMessageModel>;
+ ChatMessageModel value,
+ $Res Function(ChatMessageModel) then,
+ ) = _$ChatMessageModelCopyWithImpl<$Res, ChatMessageModel>;
@useResult
- $Res call(
- {int id,
- String data,
- @JsonKey(name: 'media_data') List? mediaData,
- @JsonKey(name: 'author_id') int authorId,
- @JsonKey(name: 'updated_at', fromJson: parseDate) DateTime updatedAt,
- @JsonKey(name: 'read_by_to_user', defaultValue: false) bool isRead,
- @JsonKey(name: 'is_author_message_auth_user') bool? isCurrentUserAuthor,
- @JsonKey(name: 'room_id') String? roomId});
+ $Res call({
+ int id,
+ String data,
+ @JsonKey(name: 'media_data') List? mediaData,
+ @JsonKey(name: 'author_id') int authorId,
+ @JsonKey(name: 'updated_at', fromJson: parseDate) DateTime updatedAt,
+ @JsonKey(name: 'read_by_to_user', defaultValue: false) bool isRead,
+ @JsonKey(name: 'is_author_message_auth_user') bool? isCurrentUserAuthor,
+ @JsonKey(name: 'room_id') String? roomId,
+ });
}
/// @nodoc
@@ -86,69 +89,83 @@ class _$ChatMessageModelCopyWithImpl<$Res, $Val extends ChatMessageModel>
Object? isCurrentUserAuthor = freezed,
Object? roomId = freezed,
}) {
- return _then(_value.copyWith(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int,
- data: null == data
- ? _value.data
- : data // ignore: cast_nullable_to_non_nullable
- as String,
- mediaData: freezed == mediaData
- ? _value.mediaData
- : mediaData // ignore: cast_nullable_to_non_nullable
- as List?,
- authorId: null == authorId
- ? _value.authorId
- : authorId // ignore: cast_nullable_to_non_nullable
- as int,
- updatedAt: null == updatedAt
- ? _value.updatedAt
- : updatedAt // ignore: cast_nullable_to_non_nullable
- as DateTime,
- isRead: null == isRead
- ? _value.isRead
- : isRead // ignore: cast_nullable_to_non_nullable
- as bool,
- isCurrentUserAuthor: freezed == isCurrentUserAuthor
- ? _value.isCurrentUserAuthor
- : isCurrentUserAuthor // ignore: cast_nullable_to_non_nullable
- as bool?,
- roomId: freezed == roomId
- ? _value.roomId
- : roomId // ignore: cast_nullable_to_non_nullable
- as String?,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as int,
+ data:
+ null == data
+ ? _value.data
+ : data // ignore: cast_nullable_to_non_nullable
+ as String,
+ mediaData:
+ freezed == mediaData
+ ? _value.mediaData
+ : mediaData // ignore: cast_nullable_to_non_nullable
+ as List?,
+ authorId:
+ null == authorId
+ ? _value.authorId
+ : authorId // ignore: cast_nullable_to_non_nullable
+ as int,
+ updatedAt:
+ null == updatedAt
+ ? _value.updatedAt
+ : updatedAt // ignore: cast_nullable_to_non_nullable
+ as DateTime,
+ isRead:
+ null == isRead
+ ? _value.isRead
+ : isRead // ignore: cast_nullable_to_non_nullable
+ as bool,
+ isCurrentUserAuthor:
+ freezed == isCurrentUserAuthor
+ ? _value.isCurrentUserAuthor
+ : isCurrentUserAuthor // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ roomId:
+ freezed == roomId
+ ? _value.roomId
+ : roomId // ignore: cast_nullable_to_non_nullable
+ as String?,
+ )
+ as $Val,
+ );
}
}
/// @nodoc
abstract class _$$ChatMessageModelImplCopyWith<$Res>
implements $ChatMessageModelCopyWith<$Res> {
- factory _$$ChatMessageModelImplCopyWith(_$ChatMessageModelImpl value,
- $Res Function(_$ChatMessageModelImpl) then) =
- __$$ChatMessageModelImplCopyWithImpl<$Res>;
+ factory _$$ChatMessageModelImplCopyWith(
+ _$ChatMessageModelImpl value,
+ $Res Function(_$ChatMessageModelImpl) then,
+ ) = __$$ChatMessageModelImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {int id,
- String data,
- @JsonKey(name: 'media_data') List? mediaData,
- @JsonKey(name: 'author_id') int authorId,
- @JsonKey(name: 'updated_at', fromJson: parseDate) DateTime updatedAt,
- @JsonKey(name: 'read_by_to_user', defaultValue: false) bool isRead,
- @JsonKey(name: 'is_author_message_auth_user') bool? isCurrentUserAuthor,
- @JsonKey(name: 'room_id') String? roomId});
+ $Res call({
+ int id,
+ String data,
+ @JsonKey(name: 'media_data') List? mediaData,
+ @JsonKey(name: 'author_id') int authorId,
+ @JsonKey(name: 'updated_at', fromJson: parseDate) DateTime updatedAt,
+ @JsonKey(name: 'read_by_to_user', defaultValue: false) bool isRead,
+ @JsonKey(name: 'is_author_message_auth_user') bool? isCurrentUserAuthor,
+ @JsonKey(name: 'room_id') String? roomId,
+ });
}
/// @nodoc
class __$$ChatMessageModelImplCopyWithImpl<$Res>
extends _$ChatMessageModelCopyWithImpl<$Res, _$ChatMessageModelImpl>
implements _$$ChatMessageModelImplCopyWith<$Res> {
- __$$ChatMessageModelImplCopyWithImpl(_$ChatMessageModelImpl _value,
- $Res Function(_$ChatMessageModelImpl) _then)
- : super(_value, _then);
+ __$$ChatMessageModelImplCopyWithImpl(
+ _$ChatMessageModelImpl _value,
+ $Res Function(_$ChatMessageModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatMessageModel
/// with the given fields replaced by the non-null parameter values.
@@ -164,58 +181,67 @@ class __$$ChatMessageModelImplCopyWithImpl<$Res>
Object? isCurrentUserAuthor = freezed,
Object? roomId = freezed,
}) {
- return _then(_$ChatMessageModelImpl(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as int,
- data: null == data
- ? _value.data
- : data // ignore: cast_nullable_to_non_nullable
- as String,
- mediaData: freezed == mediaData
- ? _value._mediaData
- : mediaData // ignore: cast_nullable_to_non_nullable
- as List?,
- authorId: null == authorId
- ? _value.authorId
- : authorId // ignore: cast_nullable_to_non_nullable
- as int,
- updatedAt: null == updatedAt
- ? _value.updatedAt
- : updatedAt // ignore: cast_nullable_to_non_nullable
- as DateTime,
- isRead: null == isRead
- ? _value.isRead
- : isRead // ignore: cast_nullable_to_non_nullable
- as bool,
- isCurrentUserAuthor: freezed == isCurrentUserAuthor
- ? _value.isCurrentUserAuthor
- : isCurrentUserAuthor // ignore: cast_nullable_to_non_nullable
- as bool?,
- roomId: freezed == roomId
- ? _value.roomId
- : roomId // ignore: cast_nullable_to_non_nullable
- as String?,
- ));
+ return _then(
+ _$ChatMessageModelImpl(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as int,
+ data:
+ null == data
+ ? _value.data
+ : data // ignore: cast_nullable_to_non_nullable
+ as String,
+ mediaData:
+ freezed == mediaData
+ ? _value._mediaData
+ : mediaData // ignore: cast_nullable_to_non_nullable
+ as List?,
+ authorId:
+ null == authorId
+ ? _value.authorId
+ : authorId // ignore: cast_nullable_to_non_nullable
+ as int,
+ updatedAt:
+ null == updatedAt
+ ? _value.updatedAt
+ : updatedAt // ignore: cast_nullable_to_non_nullable
+ as DateTime,
+ isRead:
+ null == isRead
+ ? _value.isRead
+ : isRead // ignore: cast_nullable_to_non_nullable
+ as bool,
+ isCurrentUserAuthor:
+ freezed == isCurrentUserAuthor
+ ? _value.isCurrentUserAuthor
+ : isCurrentUserAuthor // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ roomId:
+ freezed == roomId
+ ? _value.roomId
+ : roomId // ignore: cast_nullable_to_non_nullable
+ as String?,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatMessageModelImpl implements _ChatMessageModel {
- const _$ChatMessageModelImpl(
- {required this.id,
- required this.data,
- @JsonKey(name: 'media_data') required final List? mediaData,
- @JsonKey(name: 'author_id') required this.authorId,
- @JsonKey(name: 'updated_at', fromJson: parseDate) required this.updatedAt,
- @JsonKey(name: 'read_by_to_user', defaultValue: false)
- required this.isRead,
- @JsonKey(name: 'is_author_message_auth_user')
- required this.isCurrentUserAuthor,
- @JsonKey(name: 'room_id') required this.roomId})
- : _mediaData = mediaData;
+ const _$ChatMessageModelImpl({
+ required this.id,
+ required this.data,
+ @JsonKey(name: 'media_data') required final List? mediaData,
+ @JsonKey(name: 'author_id') required this.authorId,
+ @JsonKey(name: 'updated_at', fromJson: parseDate) required this.updatedAt,
+ @JsonKey(name: 'read_by_to_user', defaultValue: false) required this.isRead,
+ @JsonKey(name: 'is_author_message_auth_user')
+ required this.isCurrentUserAuthor,
+ @JsonKey(name: 'room_id') required this.roomId,
+ }) : _mediaData = mediaData;
factory _$ChatMessageModelImpl.fromJson(Map json) =>
_$$ChatMessageModelImplFromJson(json);
@@ -263,8 +289,10 @@ class _$ChatMessageModelImpl implements _ChatMessageModel {
other is _$ChatMessageModelImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.data, data) || other.data == data) &&
- const DeepCollectionEquality()
- .equals(other._mediaData, _mediaData) &&
+ const DeepCollectionEquality().equals(
+ other._mediaData,
+ _mediaData,
+ ) &&
(identical(other.authorId, authorId) ||
other.authorId == authorId) &&
(identical(other.updatedAt, updatedAt) ||
@@ -278,15 +306,16 @@ class _$ChatMessageModelImpl implements _ChatMessageModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
- runtimeType,
- id,
- data,
- const DeepCollectionEquality().hash(_mediaData),
- authorId,
- updatedAt,
- isRead,
- isCurrentUserAuthor,
- roomId);
+ runtimeType,
+ id,
+ data,
+ const DeepCollectionEquality().hash(_mediaData),
+ authorId,
+ updatedAt,
+ isRead,
+ isCurrentUserAuthor,
+ roomId,
+ );
/// Create a copy of ChatMessageModel
/// with the given fields replaced by the non-null parameter values.
@@ -295,30 +324,30 @@ class _$ChatMessageModelImpl implements _ChatMessageModel {
@pragma('vm:prefer-inline')
_$$ChatMessageModelImplCopyWith<_$ChatMessageModelImpl> get copyWith =>
__$$ChatMessageModelImplCopyWithImpl<_$ChatMessageModelImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
Map toJson() {
- return _$$ChatMessageModelImplToJson(
- this,
- );
+ return _$$ChatMessageModelImplToJson(this);
}
}
abstract class _ChatMessageModel implements ChatMessageModel {
- const factory _ChatMessageModel(
- {required final int id,
- required final String data,
- @JsonKey(name: 'media_data') required final List? mediaData,
- @JsonKey(name: 'author_id') required final int authorId,
- @JsonKey(name: 'updated_at', fromJson: parseDate)
- required final DateTime updatedAt,
- @JsonKey(name: 'read_by_to_user', defaultValue: false)
- required final bool isRead,
- @JsonKey(name: 'is_author_message_auth_user')
- required final bool? isCurrentUserAuthor,
- @JsonKey(name: 'room_id') required final String? roomId}) =
- _$ChatMessageModelImpl;
+ const factory _ChatMessageModel({
+ required final int id,
+ required final String data,
+ @JsonKey(name: 'media_data') required final List? mediaData,
+ @JsonKey(name: 'author_id') required final int authorId,
+ @JsonKey(name: 'updated_at', fromJson: parseDate)
+ required final DateTime updatedAt,
+ @JsonKey(name: 'read_by_to_user', defaultValue: false)
+ required final bool isRead,
+ @JsonKey(name: 'is_author_message_auth_user')
+ required final bool? isCurrentUserAuthor,
+ @JsonKey(name: 'room_id') required final String? roomId,
+ }) = _$ChatMessageModelImpl;
factory _ChatMessageModel.fromJson(Map json) =
_$ChatMessageModelImpl.fromJson;
diff --git a/lib/features/chat/models/chat_message_model.g.dart b/lib/features/chat/models/chat_message_model.g.dart
index de7ea3c3..aedebde0 100644
--- a/lib/features/chat/models/chat_message_model.g.dart
+++ b/lib/features/chat/models/chat_message_model.g.dart
@@ -7,27 +7,27 @@ part of 'chat_message_model.dart';
// **************************************************************************
_$ChatMessageModelImpl _$$ChatMessageModelImplFromJson(
- Map json) =>
- _$ChatMessageModelImpl(
- id: (json['id'] as num).toInt(),
- data: json['data'] as String,
- mediaData: json['media_data'] as List?,
- authorId: (json['author_id'] as num).toInt(),
- updatedAt: parseDate(json['updated_at'] as String),
- isRead: json['read_by_to_user'] as bool? ?? false,
- isCurrentUserAuthor: json['is_author_message_auth_user'] as bool?,
- roomId: json['room_id'] as String?,
- );
+ Map json,
+) => _$ChatMessageModelImpl(
+ id: (json['id'] as num).toInt(),
+ data: json['data'] as String,
+ mediaData: json['media_data'] as List?,
+ authorId: (json['author_id'] as num).toInt(),
+ updatedAt: parseDate(json['updated_at'] as String),
+ isRead: json['read_by_to_user'] as bool? ?? false,
+ isCurrentUserAuthor: json['is_author_message_auth_user'] as bool?,
+ roomId: json['room_id'] as String?,
+);
Map _$$ChatMessageModelImplToJson(
- _$ChatMessageModelImpl instance) =>
- {
- 'id': instance.id,
- 'data': instance.data,
- 'media_data': instance.mediaData,
- 'author_id': instance.authorId,
- 'updated_at': instance.updatedAt.toIso8601String(),
- 'read_by_to_user': instance.isRead,
- 'is_author_message_auth_user': instance.isCurrentUserAuthor,
- 'room_id': instance.roomId,
- };
+ _$ChatMessageModelImpl instance,
+) => {
+ 'id': instance.id,
+ 'data': instance.data,
+ 'media_data': instance.mediaData,
+ 'author_id': instance.authorId,
+ 'updated_at': instance.updatedAt.toIso8601String(),
+ 'read_by_to_user': instance.isRead,
+ 'is_author_message_auth_user': instance.isCurrentUserAuthor,
+ 'room_id': instance.roomId,
+};
diff --git a/lib/features/chat/models/chat_messages_model.freezed.dart b/lib/features/chat/models/chat_messages_model.freezed.dart
index 852b33e4..1679286b 100644
--- a/lib/features/chat/models/chat_messages_model.freezed.dart
+++ b/lib/features/chat/models/chat_messages_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'chat_messages_model.dart';
T _$identity(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',
+);
ChatMessagesModel _$ChatMessagesModelFromJson(Map json) {
return _ChatMessagesModel.fromJson(json);
@@ -37,12 +38,14 @@ mixin _$ChatMessagesModel {
/// @nodoc
abstract class $ChatMessagesModelCopyWith<$Res> {
factory $ChatMessagesModelCopyWith(
- ChatMessagesModel value, $Res Function(ChatMessagesModel) then) =
- _$ChatMessagesModelCopyWithImpl<$Res, ChatMessagesModel>;
+ ChatMessagesModel value,
+ $Res Function(ChatMessagesModel) then,
+ ) = _$ChatMessagesModelCopyWithImpl<$Res, ChatMessagesModel>;
@useResult
- $Res call(
- {@JsonKey(name: 'data') List messagesList,
- ChatMetaModel meta});
+ $Res call({
+ @JsonKey(name: 'data') List messagesList,
+ ChatMetaModel meta,
+ });
$ChatMetaModelCopyWith<$Res> get meta;
}
@@ -61,20 +64,22 @@ class _$ChatMessagesModelCopyWithImpl<$Res, $Val extends ChatMessagesModel>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? messagesList = null,
- Object? meta = null,
- }) {
- return _then(_value.copyWith(
- messagesList: null == messagesList
- ? _value.messagesList
- : messagesList // ignore: cast_nullable_to_non_nullable
- as List,
- meta: null == meta
- ? _value.meta
- : meta // ignore: cast_nullable_to_non_nullable
- as ChatMetaModel,
- ) as $Val);
+ $Res call({Object? messagesList = null, Object? meta = null}) {
+ return _then(
+ _value.copyWith(
+ messagesList:
+ null == messagesList
+ ? _value.messagesList
+ : messagesList // ignore: cast_nullable_to_non_nullable
+ as List,
+ meta:
+ null == meta
+ ? _value.meta
+ : meta // ignore: cast_nullable_to_non_nullable
+ as ChatMetaModel,
+ )
+ as $Val,
+ );
}
/// Create a copy of ChatMessagesModel
@@ -91,14 +96,16 @@ class _$ChatMessagesModelCopyWithImpl<$Res, $Val extends ChatMessagesModel>
/// @nodoc
abstract class _$$ChatMessagesModelImplCopyWith<$Res>
implements $ChatMessagesModelCopyWith<$Res> {
- factory _$$ChatMessagesModelImplCopyWith(_$ChatMessagesModelImpl value,
- $Res Function(_$ChatMessagesModelImpl) then) =
- __$$ChatMessagesModelImplCopyWithImpl<$Res>;
+ factory _$$ChatMessagesModelImplCopyWith(
+ _$ChatMessagesModelImpl value,
+ $Res Function(_$ChatMessagesModelImpl) then,
+ ) = __$$ChatMessagesModelImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: 'data') List messagesList,
- ChatMetaModel meta});
+ $Res call({
+ @JsonKey(name: 'data') List messagesList,
+ ChatMetaModel meta,
+ });
@override
$ChatMetaModelCopyWith<$Res> get meta;
@@ -108,39 +115,40 @@ abstract class _$$ChatMessagesModelImplCopyWith<$Res>
class __$$ChatMessagesModelImplCopyWithImpl<$Res>
extends _$ChatMessagesModelCopyWithImpl<$Res, _$ChatMessagesModelImpl>
implements _$$ChatMessagesModelImplCopyWith<$Res> {
- __$$ChatMessagesModelImplCopyWithImpl(_$ChatMessagesModelImpl _value,
- $Res Function(_$ChatMessagesModelImpl) _then)
- : super(_value, _then);
+ __$$ChatMessagesModelImplCopyWithImpl(
+ _$ChatMessagesModelImpl _value,
+ $Res Function(_$ChatMessagesModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatMessagesModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? messagesList = null,
- Object? meta = null,
- }) {
- return _then(_$ChatMessagesModelImpl(
- messagesList: null == messagesList
- ? _value._messagesList
- : messagesList // ignore: cast_nullable_to_non_nullable
- as List,
- meta: null == meta
- ? _value.meta
- : meta // ignore: cast_nullable_to_non_nullable
- as ChatMetaModel,
- ));
+ $Res call({Object? messagesList = null, Object? meta = null}) {
+ return _then(
+ _$ChatMessagesModelImpl(
+ messagesList:
+ null == messagesList
+ ? _value._messagesList
+ : messagesList // ignore: cast_nullable_to_non_nullable
+ as List,
+ meta:
+ null == meta
+ ? _value.meta
+ : meta // ignore: cast_nullable_to_non_nullable
+ as ChatMetaModel,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatMessagesModelImpl implements _ChatMessagesModel {
- const _$ChatMessagesModelImpl(
- {@JsonKey(name: 'data')
- required final List messagesList,
- required this.meta})
- : _messagesList = messagesList;
+ const _$ChatMessagesModelImpl({
+ @JsonKey(name: 'data') required final List messagesList,
+ required this.meta,
+ }) : _messagesList = messagesList;
factory _$ChatMessagesModelImpl.fromJson(Map json) =>
_$$ChatMessagesModelImplFromJson(json);
@@ -167,15 +175,20 @@ class _$ChatMessagesModelImpl implements _ChatMessagesModel {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ChatMessagesModelImpl &&
- const DeepCollectionEquality()
- .equals(other._messagesList, _messagesList) &&
+ const DeepCollectionEquality().equals(
+ other._messagesList,
+ _messagesList,
+ ) &&
(identical(other.meta, meta) || other.meta == meta));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
- runtimeType, const DeepCollectionEquality().hash(_messagesList), meta);
+ runtimeType,
+ const DeepCollectionEquality().hash(_messagesList),
+ meta,
+ );
/// Create a copy of ChatMessagesModel
/// with the given fields replaced by the non-null parameter values.
@@ -184,21 +197,21 @@ class _$ChatMessagesModelImpl implements _ChatMessagesModel {
@pragma('vm:prefer-inline')
_$$ChatMessagesModelImplCopyWith<_$ChatMessagesModelImpl> get copyWith =>
__$$ChatMessagesModelImplCopyWithImpl<_$ChatMessagesModelImpl>(
- this, _$identity);
+ this,
+ _$identity,
+ );
@override
Map toJson() {
- return _$$ChatMessagesModelImplToJson(
- this,
- );
+ return _$$ChatMessagesModelImplToJson(this);
}
}
abstract class _ChatMessagesModel implements ChatMessagesModel {
- const factory _ChatMessagesModel(
- {@JsonKey(name: 'data')
- required final List messagesList,
- required final ChatMetaModel meta}) = _$ChatMessagesModelImpl;
+ const factory _ChatMessagesModel({
+ @JsonKey(name: 'data') required final List messagesList,
+ required final ChatMetaModel meta,
+ }) = _$ChatMessagesModelImpl;
factory _ChatMessagesModel.fromJson(Map json) =
_$ChatMessagesModelImpl.fromJson;
diff --git a/lib/features/chat/models/chat_messages_model.g.dart b/lib/features/chat/models/chat_messages_model.g.dart
index 6216cd83..a2722718 100644
--- a/lib/features/chat/models/chat_messages_model.g.dart
+++ b/lib/features/chat/models/chat_messages_model.g.dart
@@ -7,17 +7,15 @@ part of 'chat_messages_model.dart';
// **************************************************************************
_$ChatMessagesModelImpl _$$ChatMessagesModelImplFromJson(
- Map json) =>
- _$ChatMessagesModelImpl(
- messagesList: (json['data'] as List)
+ Map json,
+) => _$ChatMessagesModelImpl(
+ messagesList:
+ (json['data'] as List)
.map((e) => ChatMessageModel.fromJson(e as Map))
.toList(),
- meta: ChatMetaModel.fromJson(json['meta'] as Map),
- );
+ meta: ChatMetaModel.fromJson(json['meta'] as Map),
+);
Map _$$ChatMessagesModelImplToJson(
- _$ChatMessagesModelImpl instance) =>
- {
- 'data': instance.messagesList,
- 'meta': instance.meta,
- };
+ _$ChatMessagesModelImpl instance,
+) => {'data': instance.messagesList, 'meta': instance.meta};
diff --git a/lib/features/chat/models/chat_meta_model.freezed.dart b/lib/features/chat/models/chat_meta_model.freezed.dart
index e8e4e96b..0ac5e1b1 100644
--- a/lib/features/chat/models/chat_meta_model.freezed.dart
+++ b/lib/features/chat/models/chat_meta_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'chat_meta_model.dart';
T _$identity(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',
+);
ChatMetaModel _$ChatMetaModelFromJson(Map json) {
return _ChatMetaModel.fromJson(json);
@@ -36,8 +37,9 @@ mixin _$ChatMetaModel {
/// @nodoc
abstract class $ChatMetaModelCopyWith<$Res> {
factory $ChatMetaModelCopyWith(
- ChatMetaModel value, $Res Function(ChatMetaModel) then) =
- _$ChatMetaModelCopyWithImpl<$Res, ChatMetaModel>;
+ ChatMetaModel value,
+ $Res Function(ChatMetaModel) then,
+ ) = _$ChatMetaModelCopyWithImpl<$Res, ChatMetaModel>;
@useResult
$Res call({@JsonKey(name: "last_page") int lastPage});
}
@@ -56,15 +58,17 @@ class _$ChatMetaModelCopyWithImpl<$Res, $Val extends ChatMetaModel>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? lastPage = null,
- }) {
- return _then(_value.copyWith(
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- ) as $Val);
+ $Res call({Object? lastPage = null}) {
+ return _then(
+ _value.copyWith(
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ )
+ as $Val,
+ );
}
}
@@ -72,8 +76,9 @@ class _$ChatMetaModelCopyWithImpl<$Res, $Val extends ChatMetaModel>
abstract class _$$ChatMetaModelImplCopyWith<$Res>
implements $ChatMetaModelCopyWith<$Res> {
factory _$$ChatMetaModelImplCopyWith(
- _$ChatMetaModelImpl value, $Res Function(_$ChatMetaModelImpl) then) =
- __$$ChatMetaModelImplCopyWithImpl<$Res>;
+ _$ChatMetaModelImpl value,
+ $Res Function(_$ChatMetaModelImpl) then,
+ ) = __$$ChatMetaModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({@JsonKey(name: "last_page") int lastPage});
@@ -84,30 +89,33 @@ class __$$ChatMetaModelImplCopyWithImpl<$Res>
extends _$ChatMetaModelCopyWithImpl<$Res, _$ChatMetaModelImpl>
implements _$$ChatMetaModelImplCopyWith<$Res> {
__$$ChatMetaModelImplCopyWithImpl(
- _$ChatMetaModelImpl _value, $Res Function(_$ChatMetaModelImpl) _then)
- : super(_value, _then);
+ _$ChatMetaModelImpl _value,
+ $Res Function(_$ChatMetaModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatMetaModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? lastPage = null,
- }) {
- return _then(_$ChatMetaModelImpl(
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- ));
+ $Res call({Object? lastPage = null}) {
+ return _then(
+ _$ChatMetaModelImpl(
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatMetaModelImpl implements _ChatMetaModel {
- const _$ChatMetaModelImpl(
- {@JsonKey(name: "last_page") required this.lastPage});
+ const _$ChatMetaModelImpl({
+ @JsonKey(name: "last_page") required this.lastPage,
+ });
factory _$ChatMetaModelImpl.fromJson(Map json) =>
_$$ChatMetaModelImplFromJson(json);
@@ -144,16 +152,14 @@ class _$ChatMetaModelImpl implements _ChatMetaModel {
@override
Map toJson() {
- return _$$ChatMetaModelImplToJson(
- this,
- );
+ return _$$ChatMetaModelImplToJson(this);
}
}
abstract class _ChatMetaModel implements ChatMetaModel {
- const factory _ChatMetaModel(
- {@JsonKey(name: "last_page") required final int lastPage}) =
- _$ChatMetaModelImpl;
+ const factory _ChatMetaModel({
+ @JsonKey(name: "last_page") required final int lastPage,
+ }) = _$ChatMetaModelImpl;
factory _ChatMetaModel.fromJson(Map json) =
_$ChatMetaModelImpl.fromJson;
diff --git a/lib/features/chat/models/chat_meta_model.g.dart b/lib/features/chat/models/chat_meta_model.g.dart
index 7126e2dd..fd0e0ea7 100644
--- a/lib/features/chat/models/chat_meta_model.g.dart
+++ b/lib/features/chat/models/chat_meta_model.g.dart
@@ -7,11 +7,7 @@ part of 'chat_meta_model.dart';
// **************************************************************************
_$ChatMetaModelImpl _$$ChatMetaModelImplFromJson(Map json) =>
- _$ChatMetaModelImpl(
- lastPage: (json['last_page'] as num).toInt(),
- );
+ _$ChatMetaModelImpl(lastPage: (json['last_page'] as num).toInt());
Map _$$ChatMetaModelImplToJson(_$ChatMetaModelImpl instance) =>
- {
- 'last_page': instance.lastPage,
- };
+ {'last_page': instance.lastPage};
diff --git a/lib/features/chat/models/chat_room_model.freezed.dart b/lib/features/chat/models/chat_room_model.freezed.dart
index 829dd69f..d624c9fe 100644
--- a/lib/features/chat/models/chat_room_model.freezed.dart
+++ b/lib/features/chat/models/chat_room_model.freezed.dart
@@ -12,7 +12,8 @@ part of 'chat_room_model.dart';
T _$identity(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',
+);
ChatRoomModel _$ChatRoomModelFromJson(Map json) {
return _ChatRoomModel.fromJson(json);
@@ -41,16 +42,17 @@ mixin _$ChatRoomModel {
/// @nodoc
abstract class $ChatRoomModelCopyWith<$Res> {
factory $ChatRoomModelCopyWith(
- ChatRoomModel value, $Res Function(ChatRoomModel) then) =
- _$ChatRoomModelCopyWithImpl<$Res, ChatRoomModel>;
+ ChatRoomModel value,
+ $Res Function(ChatRoomModel) then,
+ ) = _$ChatRoomModelCopyWithImpl<$Res, ChatRoomModel>;
@useResult
- $Res call(
- {String id,
- @JsonKey(name: 'chat_room_setting')
- ChatRoomSettingsModel chatRoomSettings,
- Users users,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- ChosenPlanModel? chosenPlan});
+ $Res call({
+ String id,
+ @JsonKey(name: 'chat_room_setting') ChatRoomSettingsModel chatRoomSettings,
+ Users users,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ ChosenPlanModel? chosenPlan,
+ });
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings;
$UsersCopyWith<$Res> get users;
@@ -77,24 +79,31 @@ class _$ChatRoomModelCopyWithImpl<$Res, $Val extends ChatRoomModel>
Object? users = null,
Object? chosenPlan = freezed,
}) {
- return _then(_value.copyWith(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as String,
- chatRoomSettings: null == chatRoomSettings
- ? _value.chatRoomSettings
- : chatRoomSettings // ignore: cast_nullable_to_non_nullable
- as ChatRoomSettingsModel,
- users: null == users
- ? _value.users
- : users // ignore: cast_nullable_to_non_nullable
- as Users,
- chosenPlan: freezed == chosenPlan
- ? _value.chosenPlan
- : chosenPlan // ignore: cast_nullable_to_non_nullable
- as ChosenPlanModel?,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as String,
+ chatRoomSettings:
+ null == chatRoomSettings
+ ? _value.chatRoomSettings
+ : chatRoomSettings // ignore: cast_nullable_to_non_nullable
+ as ChatRoomSettingsModel,
+ users:
+ null == users
+ ? _value.users
+ : users // ignore: cast_nullable_to_non_nullable
+ as Users,
+ chosenPlan:
+ freezed == chosenPlan
+ ? _value.chosenPlan
+ : chosenPlan // ignore: cast_nullable_to_non_nullable
+ as ChosenPlanModel?,
+ )
+ as $Val,
+ );
}
/// Create a copy of ChatRoomModel
@@ -102,8 +111,9 @@ class _$ChatRoomModelCopyWithImpl<$Res, $Val extends ChatRoomModel>
@override
@pragma('vm:prefer-inline')
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings {
- return $ChatRoomSettingsModelCopyWith<$Res>(_value.chatRoomSettings,
- (value) {
+ return $ChatRoomSettingsModelCopyWith<$Res>(_value.chatRoomSettings, (
+ value,
+ ) {
return _then(_value.copyWith(chatRoomSettings: value) as $Val);
});
}
@@ -137,17 +147,18 @@ class _$ChatRoomModelCopyWithImpl<$Res, $Val extends ChatRoomModel>
abstract class _$$ChatRoomModelImplCopyWith<$Res>
implements $ChatRoomModelCopyWith<$Res> {
factory _$$ChatRoomModelImplCopyWith(
- _$ChatRoomModelImpl value, $Res Function(_$ChatRoomModelImpl) then) =
- __$$ChatRoomModelImplCopyWithImpl<$Res>;
+ _$ChatRoomModelImpl value,
+ $Res Function(_$ChatRoomModelImpl) then,
+ ) = __$$ChatRoomModelImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {String id,
- @JsonKey(name: 'chat_room_setting')
- ChatRoomSettingsModel chatRoomSettings,
- Users users,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- ChosenPlanModel? chosenPlan});
+ $Res call({
+ String id,
+ @JsonKey(name: 'chat_room_setting') ChatRoomSettingsModel chatRoomSettings,
+ Users users,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ ChosenPlanModel? chosenPlan,
+ });
@override
$ChatRoomSettingsModelCopyWith<$Res> get chatRoomSettings;
@@ -162,8 +173,9 @@ class __$$ChatRoomModelImplCopyWithImpl<$Res>
extends _$ChatRoomModelCopyWithImpl<$Res, _$ChatRoomModelImpl>
implements _$$ChatRoomModelImplCopyWith<$Res> {
__$$ChatRoomModelImplCopyWithImpl(
- _$ChatRoomModelImpl _value, $Res Function(_$ChatRoomModelImpl) _then)
- : super(_value, _then);
+ _$ChatRoomModelImpl _value,
+ $Res Function(_$ChatRoomModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatRoomModel
/// with the given fields replaced by the non-null parameter values.
@@ -175,36 +187,43 @@ class __$$ChatRoomModelImplCopyWithImpl<$Res>
Object? users = null,
Object? chosenPlan = freezed,
}) {
- return _then(_$ChatRoomModelImpl(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as String,
- chatRoomSettings: null == chatRoomSettings
- ? _value.chatRoomSettings
- : chatRoomSettings // ignore: cast_nullable_to_non_nullable
- as ChatRoomSettingsModel,
- users: null == users
- ? _value.users
- : users // ignore: cast_nullable_to_non_nullable
- as Users,
- chosenPlan: freezed == chosenPlan
- ? _value.chosenPlan
- : chosenPlan // ignore: cast_nullable_to_non_nullable
- as ChosenPlanModel?,
- ));
+ return _then(
+ _$ChatRoomModelImpl(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as String,
+ chatRoomSettings:
+ null == chatRoomSettings
+ ? _value.chatRoomSettings
+ : chatRoomSettings // ignore: cast_nullable_to_non_nullable
+ as ChatRoomSettingsModel,
+ users:
+ null == users
+ ? _value.users
+ : users // ignore: cast_nullable_to_non_nullable
+ as Users,
+ chosenPlan:
+ freezed == chosenPlan
+ ? _value.chosenPlan
+ : chosenPlan // ignore: cast_nullable_to_non_nullable
+ as ChosenPlanModel?,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatRoomModelImpl implements _ChatRoomModel {
- const _$ChatRoomModelImpl(
- {required this.id,
- @JsonKey(name: 'chat_room_setting') required this.chatRoomSettings,
- required this.users,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- required this.chosenPlan});
+ const _$ChatRoomModelImpl({
+ required this.id,
+ @JsonKey(name: 'chat_room_setting') required this.chatRoomSettings,
+ required this.users,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ required this.chosenPlan,
+ });
factory _$ChatRoomModelImpl.fromJson(Map json) =>
_$$ChatRoomModelImplFromJson(json);
@@ -253,20 +272,19 @@ class _$ChatRoomModelImpl implements _ChatRoomModel {
@override
Map toJson() {
- return _$$ChatRoomModelImplToJson(
- this,
- );
+ return _$$ChatRoomModelImplToJson(this);
}
}
abstract class _ChatRoomModel implements ChatRoomModel {
- const factory _ChatRoomModel(
- {required final String id,
- @JsonKey(name: 'chat_room_setting')
- required final ChatRoomSettingsModel chatRoomSettings,
- required final Users users,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- required final ChosenPlanModel? chosenPlan}) = _$ChatRoomModelImpl;
+ const factory _ChatRoomModel({
+ required final String id,
+ @JsonKey(name: 'chat_room_setting')
+ required final ChatRoomSettingsModel chatRoomSettings,
+ required final Users users,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ required final ChosenPlanModel? chosenPlan,
+ }) = _$ChatRoomModelImpl;
factory _ChatRoomModel.fromJson(Map json) =
_$ChatRoomModelImpl.fromJson;
@@ -315,9 +333,10 @@ abstract class $UsersCopyWith<$Res> {
factory $UsersCopyWith(Users value, $Res Function(Users) then) =
_$UsersCopyWithImpl<$Res, Users>;
@useResult
- $Res call(
- {@JsonKey(name: 'from_chat_user') ChatUserModel sender,
- @JsonKey(name: 'to_chat_user') ChatUserModel receiver});
+ $Res call({
+ @JsonKey(name: 'from_chat_user') ChatUserModel sender,
+ @JsonKey(name: 'to_chat_user') ChatUserModel receiver,
+ });
$ChatUserModelCopyWith<$Res> get sender;
$ChatUserModelCopyWith<$Res> get receiver;
@@ -337,20 +356,22 @@ class _$UsersCopyWithImpl<$Res, $Val extends Users>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? sender = null,
- Object? receiver = null,
- }) {
- return _then(_value.copyWith(
- sender: null == sender
- ? _value.sender
- : sender // ignore: cast_nullable_to_non_nullable
- as ChatUserModel,
- receiver: null == receiver
- ? _value.receiver
- : receiver // ignore: cast_nullable_to_non_nullable
- as ChatUserModel,
- ) as $Val);
+ $Res call({Object? sender = null, Object? receiver = null}) {
+ return _then(
+ _value.copyWith(
+ sender:
+ null == sender
+ ? _value.sender
+ : sender // ignore: cast_nullable_to_non_nullable
+ as ChatUserModel,
+ receiver:
+ null == receiver
+ ? _value.receiver
+ : receiver // ignore: cast_nullable_to_non_nullable
+ as ChatUserModel,
+ )
+ as $Val,
+ );
}
/// Create a copy of Users
@@ -377,13 +398,15 @@ class _$UsersCopyWithImpl<$Res, $Val extends Users>
/// @nodoc
abstract class _$$UsersImplCopyWith<$Res> implements $UsersCopyWith<$Res> {
factory _$$UsersImplCopyWith(
- _$UsersImpl value, $Res Function(_$UsersImpl) then) =
- __$$UsersImplCopyWithImpl<$Res>;
+ _$UsersImpl value,
+ $Res Function(_$UsersImpl) then,
+ ) = __$$UsersImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: 'from_chat_user') ChatUserModel sender,
- @JsonKey(name: 'to_chat_user') ChatUserModel receiver});
+ $Res call({
+ @JsonKey(name: 'from_chat_user') ChatUserModel sender,
+ @JsonKey(name: 'to_chat_user') ChatUserModel receiver,
+ });
@override
$ChatUserModelCopyWith<$Res> get sender;
@@ -396,36 +419,39 @@ class __$$UsersImplCopyWithImpl<$Res>
extends _$UsersCopyWithImpl<$Res, _$UsersImpl>
implements _$$UsersImplCopyWith<$Res> {
__$$UsersImplCopyWithImpl(
- _$UsersImpl _value, $Res Function(_$UsersImpl) _then)
- : super(_value, _then);
+ _$UsersImpl _value,
+ $Res Function(_$UsersImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of Users
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? sender = null,
- Object? receiver = null,
- }) {
- return _then(_$UsersImpl(
- sender: null == sender
- ? _value.sender
- : sender // ignore: cast_nullable_to_non_nullable
- as ChatUserModel,
- receiver: null == receiver
- ? _value.receiver
- : receiver // ignore: cast_nullable_to_non_nullable
- as ChatUserModel,
- ));
+ $Res call({Object? sender = null, Object? receiver = null}) {
+ return _then(
+ _$UsersImpl(
+ sender:
+ null == sender
+ ? _value.sender
+ : sender // ignore: cast_nullable_to_non_nullable
+ as ChatUserModel,
+ receiver:
+ null == receiver
+ ? _value.receiver
+ : receiver // ignore: cast_nullable_to_non_nullable
+ as ChatUserModel,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$UsersImpl implements _Users {
- const _$UsersImpl(
- {@JsonKey(name: 'from_chat_user') required this.sender,
- @JsonKey(name: 'to_chat_user') required this.receiver});
+ const _$UsersImpl({
+ @JsonKey(name: 'from_chat_user') required this.sender,
+ @JsonKey(name: 'to_chat_user') required this.receiver,
+ });
factory _$UsersImpl.fromJson(Map json) =>
_$$UsersImplFromJson(json);
@@ -466,17 +492,15 @@ class _$UsersImpl implements _Users {
@override
Map toJson() {
- return _$$UsersImplToJson(
- this,
- );
+ return _$$UsersImplToJson(this);
}
}
abstract class _Users implements Users {
- const factory _Users(
- {@JsonKey(name: 'from_chat_user') required final ChatUserModel sender,
- @JsonKey(name: 'to_chat_user')
- required final ChatUserModel receiver}) = _$UsersImpl;
+ const factory _Users({
+ @JsonKey(name: 'from_chat_user') required final ChatUserModel sender,
+ @JsonKey(name: 'to_chat_user') required final ChatUserModel receiver,
+ }) = _$UsersImpl;
factory _Users.fromJson(Map json) = _$UsersImpl.fromJson;
diff --git a/lib/features/chat/models/chat_room_model.g.dart b/lib/features/chat/models/chat_room_model.g.dart
index fb9e6257..dd5279f0 100644
--- a/lib/features/chat/models/chat_room_model.g.dart
+++ b/lib/features/chat/models/chat_room_model.g.dart
@@ -10,7 +10,8 @@ _$ChatRoomModelImpl _$$ChatRoomModelImplFromJson(Map json) =>
_$ChatRoomModelImpl(
id: json['id'] as String,
chatRoomSettings: ChatRoomSettingsModel.fromJson(
- json['chat_room_setting'] as Map),
+ json['chat_room_setting'] as Map,
+ ),
users: Users.fromJson(json['users'] as Map),
chosenPlan: parseChosenPlan(json['chosen_plan']),
);
@@ -24,11 +25,13 @@ Map _$$ChatRoomModelImplToJson(_$ChatRoomModelImpl instance) =>
};
_$UsersImpl _$$UsersImplFromJson(Map json) => _$UsersImpl(
- sender: ChatUserModel.fromJson(
- json['from_chat_user'] as Map),
- receiver:
- ChatUserModel.fromJson(json['to_chat_user'] as Map),
- );
+ sender: ChatUserModel.fromJson(
+ json['from_chat_user'] as Map,
+ ),
+ receiver: ChatUserModel.fromJson(
+ json['to_chat_user'] as Map,
+ ),
+);
Map _$$UsersImplToJson(_$UsersImpl instance) =>
{
diff --git a/lib/features/chat/models/chat_room_pagination_model.freezed.dart b/lib/features/chat/models/chat_room_pagination_model.freezed.dart
index 54e56ee3..0bab8fb2 100644
--- a/lib/features/chat/models/chat_room_pagination_model.freezed.dart
+++ b/lib/features/chat/models/chat_room_pagination_model.freezed.dart
@@ -12,10 +12,12 @@ part of 'chat_room_pagination_model.dart';
T _$identity(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',
+);
ChatRoomPaginationModel _$ChatRoomPaginationModelFromJson(
- Map json) {
+ Map json,
+) {
return _ChatRoomPreviewModel.fromJson(json);
}
@@ -38,20 +40,24 @@ mixin _$ChatRoomPaginationModel {
/// @nodoc
abstract class $ChatRoomPaginationModelCopyWith<$Res> {
- factory $ChatRoomPaginationModelCopyWith(ChatRoomPaginationModel value,
- $Res Function(ChatRoomPaginationModel) then) =
- _$ChatRoomPaginationModelCopyWithImpl<$Res, ChatRoomPaginationModel>;
+ factory $ChatRoomPaginationModelCopyWith(
+ ChatRoomPaginationModel value,
+ $Res Function(ChatRoomPaginationModel) then,
+ ) = _$ChatRoomPaginationModelCopyWithImpl<$Res, ChatRoomPaginationModel>;
@useResult
- $Res call(
- {@JsonKey(name: "chatRooms") ChatRooms chatRooms,
- @JsonKey(name: "number_of_unread_chat_rooms") int unreadChatsCount});
+ $Res call({
+ @JsonKey(name: "chatRooms") ChatRooms chatRooms,
+ @JsonKey(name: "number_of_unread_chat_rooms") int unreadChatsCount,
+ });
$ChatRoomsCopyWith<$Res> get chatRooms;
}
/// @nodoc
-class _$ChatRoomPaginationModelCopyWithImpl<$Res,
- $Val extends ChatRoomPaginationModel>
+class _$ChatRoomPaginationModelCopyWithImpl<
+ $Res,
+ $Val extends ChatRoomPaginationModel
+>
implements $ChatRoomPaginationModelCopyWith<$Res> {
_$ChatRoomPaginationModelCopyWithImpl(this._value, this._then);
@@ -64,20 +70,22 @@ class _$ChatRoomPaginationModelCopyWithImpl<$Res,
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? chatRooms = null,
- Object? unreadChatsCount = null,
- }) {
- return _then(_value.copyWith(
- chatRooms: null == chatRooms
- ? _value.chatRooms
- : chatRooms // ignore: cast_nullable_to_non_nullable
- as ChatRooms,
- unreadChatsCount: null == unreadChatsCount
- ? _value.unreadChatsCount
- : unreadChatsCount // ignore: cast_nullable_to_non_nullable
- as int,
- ) as $Val);
+ $Res call({Object? chatRooms = null, Object? unreadChatsCount = null}) {
+ return _then(
+ _value.copyWith(
+ chatRooms:
+ null == chatRooms
+ ? _value.chatRooms
+ : chatRooms // ignore: cast_nullable_to_non_nullable
+ as ChatRooms,
+ unreadChatsCount:
+ null == unreadChatsCount
+ ? _value.unreadChatsCount
+ : unreadChatsCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ )
+ as $Val,
+ );
}
/// Create a copy of ChatRoomPaginationModel
@@ -94,14 +102,16 @@ class _$ChatRoomPaginationModelCopyWithImpl<$Res,
/// @nodoc
abstract class _$$ChatRoomPreviewModelImplCopyWith<$Res>
implements $ChatRoomPaginationModelCopyWith<$Res> {
- factory _$$ChatRoomPreviewModelImplCopyWith(_$ChatRoomPreviewModelImpl value,
- $Res Function(_$ChatRoomPreviewModelImpl) then) =
- __$$ChatRoomPreviewModelImplCopyWithImpl<$Res>;
+ factory _$$ChatRoomPreviewModelImplCopyWith(
+ _$ChatRoomPreviewModelImpl value,
+ $Res Function(_$ChatRoomPreviewModelImpl) then,
+ ) = __$$ChatRoomPreviewModelImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "chatRooms") ChatRooms chatRooms,
- @JsonKey(name: "number_of_unread_chat_rooms") int unreadChatsCount});
+ $Res call({
+ @JsonKey(name: "chatRooms") ChatRooms chatRooms,
+ @JsonKey(name: "number_of_unread_chat_rooms") int unreadChatsCount,
+ });
@override
$ChatRoomsCopyWith<$Res> get chatRooms;
@@ -109,41 +119,44 @@ abstract class _$$ChatRoomPreviewModelImplCopyWith<$Res>
/// @nodoc
class __$$ChatRoomPreviewModelImplCopyWithImpl<$Res>
- extends _$ChatRoomPaginationModelCopyWithImpl<$Res,
- _$ChatRoomPreviewModelImpl>
+ extends
+ _$ChatRoomPaginationModelCopyWithImpl<$Res, _$ChatRoomPreviewModelImpl>
implements _$$ChatRoomPreviewModelImplCopyWith<$Res> {
- __$$ChatRoomPreviewModelImplCopyWithImpl(_$ChatRoomPreviewModelImpl _value,
- $Res Function(_$ChatRoomPreviewModelImpl) _then)
- : super(_value, _then);
+ __$$ChatRoomPreviewModelImplCopyWithImpl(
+ _$ChatRoomPreviewModelImpl _value,
+ $Res Function(_$ChatRoomPreviewModelImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatRoomPaginationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? chatRooms = null,
- Object? unreadChatsCount = null,
- }) {
- return _then(_$ChatRoomPreviewModelImpl(
- chatRooms: null == chatRooms
- ? _value.chatRooms
- : chatRooms // ignore: cast_nullable_to_non_nullable
- as ChatRooms,
- unreadChatsCount: null == unreadChatsCount
- ? _value.unreadChatsCount
- : unreadChatsCount // ignore: cast_nullable_to_non_nullable
- as int,
- ));
+ $Res call({Object? chatRooms = null, Object? unreadChatsCount = null}) {
+ return _then(
+ _$ChatRoomPreviewModelImpl(
+ chatRooms:
+ null == chatRooms
+ ? _value.chatRooms
+ : chatRooms // ignore: cast_nullable_to_non_nullable
+ as ChatRooms,
+ unreadChatsCount:
+ null == unreadChatsCount
+ ? _value.unreadChatsCount
+ : unreadChatsCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatRoomPreviewModelImpl implements _ChatRoomPreviewModel {
- const _$ChatRoomPreviewModelImpl(
- {@JsonKey(name: "chatRooms") required this.chatRooms,
- @JsonKey(name: "number_of_unread_chat_rooms")
- required this.unreadChatsCount});
+ const _$ChatRoomPreviewModelImpl({
+ @JsonKey(name: "chatRooms") required this.chatRooms,
+ @JsonKey(name: "number_of_unread_chat_rooms")
+ required this.unreadChatsCount,
+ });
factory _$ChatRoomPreviewModelImpl.fromJson(Map json) =>
_$$ChatRoomPreviewModelImplFromJson(json);
@@ -181,23 +194,24 @@ class _$ChatRoomPreviewModelImpl implements _ChatRoomPreviewModel {
@override
@pragma('vm:prefer-inline')
_$$ChatRoomPreviewModelImplCopyWith<_$ChatRoomPreviewModelImpl>
- get copyWith =>
- __$$ChatRoomPreviewModelImplCopyWithImpl<_$ChatRoomPreviewModelImpl>(
- this, _$identity);
+ get copyWith =>
+ __$$ChatRoomPreviewModelImplCopyWithImpl<_$ChatRoomPreviewModelImpl>(
+ this,
+ _$identity,
+ );
@override
Map toJson() {
- return _$$ChatRoomPreviewModelImplToJson(
- this,
- );
+ return _$$ChatRoomPreviewModelImplToJson(this);
}
}
abstract class _ChatRoomPreviewModel implements ChatRoomPaginationModel {
- const factory _ChatRoomPreviewModel(
- {@JsonKey(name: "chatRooms") required final ChatRooms chatRooms,
- @JsonKey(name: "number_of_unread_chat_rooms")
- required final int unreadChatsCount}) = _$ChatRoomPreviewModelImpl;
+ const factory _ChatRoomPreviewModel({
+ @JsonKey(name: "chatRooms") required final ChatRooms chatRooms,
+ @JsonKey(name: "number_of_unread_chat_rooms")
+ required final int unreadChatsCount,
+ }) = _$ChatRoomPreviewModelImpl;
factory _ChatRoomPreviewModel.fromJson(Map json) =
_$ChatRoomPreviewModelImpl.fromJson;
@@ -214,7 +228,7 @@ abstract class _ChatRoomPreviewModel implements ChatRoomPaginationModel {
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ChatRoomPreviewModelImplCopyWith<_$ChatRoomPreviewModelImpl>
- get copyWith => throw _privateConstructorUsedError;
+ get copyWith => throw _privateConstructorUsedError;
}
ChatRooms _$ChatRoomsFromJson(Map json) {
@@ -245,10 +259,11 @@ abstract class $ChatRoomsCopyWith<$Res> {
factory $ChatRoomsCopyWith(ChatRooms value, $Res Function(ChatRooms) then) =
_$ChatRoomsCopyWithImpl<$Res, ChatRooms>;
@useResult
- $Res call(
- {@JsonKey(name: "data") List data,
- @JsonKey(name: "last_page") int lastPage,
- @JsonKey(name: "current_page") int currentPage});
+ $Res call({
+ @JsonKey(name: "data") List data,
+ @JsonKey(name: "last_page") int lastPage,
+ @JsonKey(name: "current_page") int currentPage,
+ });
}
/// @nodoc
@@ -270,20 +285,26 @@ class _$ChatRoomsCopyWithImpl<$Res, $Val extends ChatRooms>
Object? lastPage = null,
Object? currentPage = null,
}) {
- return _then(_value.copyWith(
- data: null == data
- ? _value.data
- : data // ignore: cast_nullable_to_non_nullable
- as List,
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- currentPage: null == currentPage
- ? _value.currentPage
- : currentPage // ignore: cast_nullable_to_non_nullable
- as int,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ data:
+ null == data
+ ? _value.data
+ : data // ignore: cast_nullable_to_non_nullable
+ as List,
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ currentPage:
+ null == currentPage
+ ? _value.currentPage
+ : currentPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ )
+ as $Val,
+ );
}
}
@@ -291,14 +312,16 @@ class _$ChatRoomsCopyWithImpl<$Res, $Val extends ChatRooms>
abstract class _$$ChatRoomsImplCopyWith<$Res>
implements $ChatRoomsCopyWith<$Res> {
factory _$$ChatRoomsImplCopyWith(
- _$ChatRoomsImpl value, $Res Function(_$ChatRoomsImpl) then) =
- __$$ChatRoomsImplCopyWithImpl<$Res>;
+ _$ChatRoomsImpl value,
+ $Res Function(_$ChatRoomsImpl) then,
+ ) = __$$ChatRoomsImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "data") List data,
- @JsonKey(name: "last_page") int lastPage,
- @JsonKey(name: "current_page") int currentPage});
+ $Res call({
+ @JsonKey(name: "data") List data,
+ @JsonKey(name: "last_page") int lastPage,
+ @JsonKey(name: "current_page") int currentPage,
+ });
}
/// @nodoc
@@ -306,8 +329,9 @@ class __$$ChatRoomsImplCopyWithImpl<$Res>
extends _$ChatRoomsCopyWithImpl<$Res, _$ChatRoomsImpl>
implements _$$ChatRoomsImplCopyWith<$Res> {
__$$ChatRoomsImplCopyWithImpl(
- _$ChatRoomsImpl _value, $Res Function(_$ChatRoomsImpl) _then)
- : super(_value, _then);
+ _$ChatRoomsImpl _value,
+ $Res Function(_$ChatRoomsImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatRooms
/// with the given fields replaced by the non-null parameter values.
@@ -318,31 +342,36 @@ class __$$ChatRoomsImplCopyWithImpl<$Res>
Object? lastPage = null,
Object? currentPage = null,
}) {
- return _then(_$ChatRoomsImpl(
- data: null == data
- ? _value._data
- : data // ignore: cast_nullable_to_non_nullable
- as List,
- lastPage: null == lastPage
- ? _value.lastPage
- : lastPage // ignore: cast_nullable_to_non_nullable
- as int,
- currentPage: null == currentPage
- ? _value.currentPage
- : currentPage // ignore: cast_nullable_to_non_nullable
- as int,
- ));
+ return _then(
+ _$ChatRoomsImpl(
+ data:
+ null == data
+ ? _value._data
+ : data // ignore: cast_nullable_to_non_nullable
+ as List,
+ lastPage:
+ null == lastPage
+ ? _value.lastPage
+ : lastPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ currentPage:
+ null == currentPage
+ ? _value.currentPage
+ : currentPage // ignore: cast_nullable_to_non_nullable
+ as int,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatRoomsImpl implements _ChatRooms {
- const _$ChatRoomsImpl(
- {@JsonKey(name: "data") required final List data,
- @JsonKey(name: "last_page") required this.lastPage,
- @JsonKey(name: "current_page") required this.currentPage})
- : _data = data;
+ const _$ChatRoomsImpl({
+ @JsonKey(name: "data") required final List data,
+ @JsonKey(name: "last_page") required this.lastPage,
+ @JsonKey(name: "current_page") required this.currentPage,
+ }) : _data = data;
factory _$ChatRoomsImpl.fromJson(Map json) =>
_$$ChatRoomsImplFromJson(json);
@@ -382,8 +411,12 @@ class _$ChatRoomsImpl implements _ChatRooms {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
- int get hashCode => Object.hash(runtimeType,
- const DeepCollectionEquality().hash(_data), lastPage, currentPage);
+ int get hashCode => Object.hash(
+ runtimeType,
+ const DeepCollectionEquality().hash(_data),
+ lastPage,
+ currentPage,
+ );
/// Create a copy of ChatRooms
/// with the given fields replaced by the non-null parameter values.
@@ -395,18 +428,16 @@ class _$ChatRoomsImpl implements _ChatRooms {
@override
Map toJson() {
- return _$$ChatRoomsImplToJson(
- this,
- );
+ return _$$ChatRoomsImplToJson(this);
}
}
abstract class _ChatRooms implements ChatRooms {
- const factory _ChatRooms(
- {@JsonKey(name: "data") required final List data,
- @JsonKey(name: "last_page") required final int lastPage,
- @JsonKey(name: "current_page") required final int currentPage}) =
- _$ChatRoomsImpl;
+ const factory _ChatRooms({
+ @JsonKey(name: "data") required final List data,
+ @JsonKey(name: "last_page") required final int lastPage,
+ @JsonKey(name: "current_page") required final int currentPage,
+ }) = _$ChatRoomsImpl;
factory _ChatRooms.fromJson(Map json) =
_$ChatRoomsImpl.fromJson;
@@ -463,15 +494,16 @@ abstract class $ChatRoomCopyWith<$Res> {
factory $ChatRoomCopyWith(ChatRoom value, $Res Function(ChatRoom) then) =
_$ChatRoomCopyWithImpl<$Res, ChatRoom>;
@useResult
- $Res call(
- {@JsonKey(name: "id") String id,
- @JsonKey(name: "room_name") String roomName,
- @JsonKey(name: "last_message", fromJson: parseLastMessage)
- ChatMessageModel? lastMessage,
- @JsonKey(name: "users") Users users,
- @JsonKey(name: "unread_messages_count") int unreadMessagesCount,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- ChosenPlanModel? chosenPlan});
+ $Res call({
+ @JsonKey(name: "id") String id,
+ @JsonKey(name: "room_name") String roomName,
+ @JsonKey(name: "last_message", fromJson: parseLastMessage)
+ ChatMessageModel? lastMessage,
+ @JsonKey(name: "users") Users users,
+ @JsonKey(name: "unread_messages_count") int unreadMessagesCount,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ ChosenPlanModel? chosenPlan,
+ });
$ChatMessageModelCopyWith<$Res>? get lastMessage;
$UsersCopyWith<$Res> get users;
@@ -500,32 +532,41 @@ class _$ChatRoomCopyWithImpl<$Res, $Val extends ChatRoom>
Object? unreadMessagesCount = null,
Object? chosenPlan = freezed,
}) {
- return _then(_value.copyWith(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as String,
- roomName: null == roomName
- ? _value.roomName
- : roomName // ignore: cast_nullable_to_non_nullable
- as String,
- lastMessage: freezed == lastMessage
- ? _value.lastMessage
- : lastMessage // ignore: cast_nullable_to_non_nullable
- as ChatMessageModel?,
- users: null == users
- ? _value.users
- : users // ignore: cast_nullable_to_non_nullable
- as Users,
- unreadMessagesCount: null == unreadMessagesCount
- ? _value.unreadMessagesCount
- : unreadMessagesCount // ignore: cast_nullable_to_non_nullable
- as int,
- chosenPlan: freezed == chosenPlan
- ? _value.chosenPlan
- : chosenPlan // ignore: cast_nullable_to_non_nullable
- as ChosenPlanModel?,
- ) as $Val);
+ return _then(
+ _value.copyWith(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as String,
+ roomName:
+ null == roomName
+ ? _value.roomName
+ : roomName // ignore: cast_nullable_to_non_nullable
+ as String,
+ lastMessage:
+ freezed == lastMessage
+ ? _value.lastMessage
+ : lastMessage // ignore: cast_nullable_to_non_nullable
+ as ChatMessageModel?,
+ users:
+ null == users
+ ? _value.users
+ : users // ignore: cast_nullable_to_non_nullable
+ as Users,
+ unreadMessagesCount:
+ null == unreadMessagesCount
+ ? _value.unreadMessagesCount
+ : unreadMessagesCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ chosenPlan:
+ freezed == chosenPlan
+ ? _value.chosenPlan
+ : chosenPlan // ignore: cast_nullable_to_non_nullable
+ as ChosenPlanModel?,
+ )
+ as $Val,
+ );
}
/// Create a copy of ChatRoom
@@ -571,19 +612,21 @@ class _$ChatRoomCopyWithImpl<$Res, $Val extends ChatRoom>
abstract class _$$ChatRoomImplCopyWith<$Res>
implements $ChatRoomCopyWith<$Res> {
factory _$$ChatRoomImplCopyWith(
- _$ChatRoomImpl value, $Res Function(_$ChatRoomImpl) then) =
- __$$ChatRoomImplCopyWithImpl<$Res>;
+ _$ChatRoomImpl value,
+ $Res Function(_$ChatRoomImpl) then,
+ ) = __$$ChatRoomImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "id") String id,
- @JsonKey(name: "room_name") String roomName,
- @JsonKey(name: "last_message", fromJson: parseLastMessage)
- ChatMessageModel? lastMessage,
- @JsonKey(name: "users") Users users,
- @JsonKey(name: "unread_messages_count") int unreadMessagesCount,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- ChosenPlanModel? chosenPlan});
+ $Res call({
+ @JsonKey(name: "id") String id,
+ @JsonKey(name: "room_name") String roomName,
+ @JsonKey(name: "last_message", fromJson: parseLastMessage)
+ ChatMessageModel? lastMessage,
+ @JsonKey(name: "users") Users users,
+ @JsonKey(name: "unread_messages_count") int unreadMessagesCount,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ ChosenPlanModel? chosenPlan,
+ });
@override
$ChatMessageModelCopyWith<$Res>? get lastMessage;
@@ -598,8 +641,9 @@ class __$$ChatRoomImplCopyWithImpl<$Res>
extends _$ChatRoomCopyWithImpl<$Res, _$ChatRoomImpl>
implements _$$ChatRoomImplCopyWith<$Res> {
__$$ChatRoomImplCopyWithImpl(
- _$ChatRoomImpl _value, $Res Function(_$ChatRoomImpl) _then)
- : super(_value, _then);
+ _$ChatRoomImpl _value,
+ $Res Function(_$ChatRoomImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of ChatRoom
/// with the given fields replaced by the non-null parameter values.
@@ -613,47 +657,56 @@ class __$$ChatRoomImplCopyWithImpl<$Res>
Object? unreadMessagesCount = null,
Object? chosenPlan = freezed,
}) {
- return _then(_$ChatRoomImpl(
- id: null == id
- ? _value.id
- : id // ignore: cast_nullable_to_non_nullable
- as String,
- roomName: null == roomName
- ? _value.roomName
- : roomName // ignore: cast_nullable_to_non_nullable
- as String,
- lastMessage: freezed == lastMessage
- ? _value.lastMessage
- : lastMessage // ignore: cast_nullable_to_non_nullable
- as ChatMessageModel?,
- users: null == users
- ? _value.users
- : users // ignore: cast_nullable_to_non_nullable
- as Users,
- unreadMessagesCount: null == unreadMessagesCount
- ? _value.unreadMessagesCount
- : unreadMessagesCount // ignore: cast_nullable_to_non_nullable
- as int,
- chosenPlan: freezed == chosenPlan
- ? _value.chosenPlan
- : chosenPlan // ignore: cast_nullable_to_non_nullable
- as ChosenPlanModel?,
- ));
+ return _then(
+ _$ChatRoomImpl(
+ id:
+ null == id
+ ? _value.id
+ : id // ignore: cast_nullable_to_non_nullable
+ as String,
+ roomName:
+ null == roomName
+ ? _value.roomName
+ : roomName // ignore: cast_nullable_to_non_nullable
+ as String,
+ lastMessage:
+ freezed == lastMessage
+ ? _value.lastMessage
+ : lastMessage // ignore: cast_nullable_to_non_nullable
+ as ChatMessageModel?,
+ users:
+ null == users
+ ? _value.users
+ : users // ignore: cast_nullable_to_non_nullable
+ as Users,
+ unreadMessagesCount:
+ null == unreadMessagesCount
+ ? _value.unreadMessagesCount
+ : unreadMessagesCount // ignore: cast_nullable_to_non_nullable
+ as int,
+ chosenPlan:
+ freezed == chosenPlan
+ ? _value.chosenPlan
+ : chosenPlan // ignore: cast_nullable_to_non_nullable
+ as ChosenPlanModel?,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$ChatRoomImpl implements _ChatRoom {
- const _$ChatRoomImpl(
- {@JsonKey(name: "id") required this.id,
- @JsonKey(name: "room_name") required this.roomName,
- @JsonKey(name: "last_message", fromJson: parseLastMessage)
- required this.lastMessage,
- @JsonKey(name: "users") required this.users,
- @JsonKey(name: "unread_messages_count") required this.unreadMessagesCount,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- required this.chosenPlan});
+ const _$ChatRoomImpl({
+ @JsonKey(name: "id") required this.id,
+ @JsonKey(name: "room_name") required this.roomName,
+ @JsonKey(name: "last_message", fromJson: parseLastMessage)
+ required this.lastMessage,
+ @JsonKey(name: "users") required this.users,
+ @JsonKey(name: "unread_messages_count") required this.unreadMessagesCount,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ required this.chosenPlan,
+ });
factory _$ChatRoomImpl.fromJson(Map json) =>
_$$ChatRoomImplFromJson(json);
@@ -701,8 +754,15 @@ class _$ChatRoomImpl implements _ChatRoom {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
- int get hashCode => Object.hash(runtimeType, id, roomName, lastMessage, users,
- unreadMessagesCount, chosenPlan);
+ int get hashCode => Object.hash(
+ runtimeType,
+ id,
+ roomName,
+ lastMessage,
+ users,
+ unreadMessagesCount,
+ chosenPlan,
+ );
/// Create a copy of ChatRoom
/// with the given fields replaced by the non-null parameter values.
@@ -714,23 +774,22 @@ class _$ChatRoomImpl implements _ChatRoom {
@override
Map toJson() {
- return _$$ChatRoomImplToJson(
- this,
- );
+ return _$$ChatRoomImplToJson(this);
}
}
abstract class _ChatRoom implements ChatRoom {
- const factory _ChatRoom(
- {@JsonKey(name: "id") required final String id,
- @JsonKey(name: "room_name") required final String roomName,
- @JsonKey(name: "last_message", fromJson: parseLastMessage)
- required final ChatMessageModel? lastMessage,
- @JsonKey(name: "users") required final Users users,
- @JsonKey(name: "unread_messages_count")
- required final int unreadMessagesCount,
- @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
- required final ChosenPlanModel? chosenPlan}) = _$ChatRoomImpl;
+ const factory _ChatRoom({
+ @JsonKey(name: "id") required final String id,
+ @JsonKey(name: "room_name") required final String roomName,
+ @JsonKey(name: "last_message", fromJson: parseLastMessage)
+ required final ChatMessageModel? lastMessage,
+ @JsonKey(name: "users") required final Users users,
+ @JsonKey(name: "unread_messages_count")
+ required final int unreadMessagesCount,
+ @JsonKey(name: 'chosen_plan', fromJson: parseChosenPlan)
+ required final ChosenPlanModel? chosenPlan,
+ }) = _$ChatRoomImpl;
factory _ChatRoom.fromJson(Map json) =
_$ChatRoomImpl.fromJson;
@@ -787,9 +846,10 @@ abstract class $UsersCopyWith<$Res> {
factory $UsersCopyWith(Users value, $Res Function(Users) then) =
_$UsersCopyWithImpl<$Res, Users>;
@useResult
- $Res call(
- {@JsonKey(name: "from_chat_user") ChatUser fromChatUser,
- @JsonKey(name: "to_chat_user") ChatUser toChatUser});
+ $Res call({
+ @JsonKey(name: "from_chat_user") ChatUser fromChatUser,
+ @JsonKey(name: "to_chat_user") ChatUser toChatUser,
+ });
$ChatUserCopyWith<$Res> get fromChatUser;
$ChatUserCopyWith<$Res> get toChatUser;
@@ -809,20 +869,22 @@ class _$UsersCopyWithImpl<$Res, $Val extends Users>
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? fromChatUser = null,
- Object? toChatUser = null,
- }) {
- return _then(_value.copyWith(
- fromChatUser: null == fromChatUser
- ? _value.fromChatUser
- : fromChatUser // ignore: cast_nullable_to_non_nullable
- as ChatUser,
- toChatUser: null == toChatUser
- ? _value.toChatUser
- : toChatUser // ignore: cast_nullable_to_non_nullable
- as ChatUser,
- ) as $Val);
+ $Res call({Object? fromChatUser = null, Object? toChatUser = null}) {
+ return _then(
+ _value.copyWith(
+ fromChatUser:
+ null == fromChatUser
+ ? _value.fromChatUser
+ : fromChatUser // ignore: cast_nullable_to_non_nullable
+ as ChatUser,
+ toChatUser:
+ null == toChatUser
+ ? _value.toChatUser
+ : toChatUser // ignore: cast_nullable_to_non_nullable
+ as ChatUser,
+ )
+ as $Val,
+ );
}
/// Create a copy of Users
@@ -849,13 +911,15 @@ class _$UsersCopyWithImpl<$Res, $Val extends Users>
/// @nodoc
abstract class _$$UsersImplCopyWith<$Res> implements $UsersCopyWith<$Res> {
factory _$$UsersImplCopyWith(
- _$UsersImpl value, $Res Function(_$UsersImpl) then) =
- __$$UsersImplCopyWithImpl<$Res>;
+ _$UsersImpl value,
+ $Res Function(_$UsersImpl) then,
+ ) = __$$UsersImplCopyWithImpl<$Res>;
@override
@useResult
- $Res call(
- {@JsonKey(name: "from_chat_user") ChatUser fromChatUser,
- @JsonKey(name: "to_chat_user") ChatUser toChatUser});
+ $Res call({
+ @JsonKey(name: "from_chat_user") ChatUser fromChatUser,
+ @JsonKey(name: "to_chat_user") ChatUser toChatUser,
+ });
@override
$ChatUserCopyWith<$Res> get fromChatUser;
@@ -868,36 +932,39 @@ class __$$UsersImplCopyWithImpl<$Res>
extends _$UsersCopyWithImpl<$Res, _$UsersImpl>
implements _$$UsersImplCopyWith<$Res> {
__$$UsersImplCopyWithImpl(
- _$UsersImpl _value, $Res Function(_$UsersImpl) _then)
- : super(_value, _then);
+ _$UsersImpl _value,
+ $Res Function(_$UsersImpl) _then,
+ ) : super(_value, _then);
/// Create a copy of Users
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
- $Res call({
- Object? fromChatUser = null,
- Object? toChatUser = null,
- }) {
- return _then(_$UsersImpl(
- fromChatUser: null == fromChatUser
- ? _value.fromChatUser
- : fromChatUser // ignore: cast_nullable_to_non_nullable
- as ChatUser,
- toChatUser: null == toChatUser
- ? _value.toChatUser
- : toChatUser // ignore: cast_nullable_to_non_nullable
- as ChatUser,
- ));
+ $Res call({Object? fromChatUser = null, Object? toChatUser = null}) {
+ return _then(
+ _$UsersImpl(
+ fromChatUser:
+ null == fromChatUser
+ ? _value.fromChatUser
+ : fromChatUser // ignore: cast_nullable_to_non_nullable
+ as ChatUser,
+ toChatUser:
+ null == toChatUser
+ ? _value.toChatUser
+ : toChatUser // ignore: cast_nullable_to_non_nullable
+ as ChatUser,
+ ),
+ );
}
}
/// @nodoc
@JsonSerializable()
class _$UsersImpl implements _Users {
- const _$UsersImpl(
- {@JsonKey(name: "from_chat_user") required this.fromChatUser,
- @JsonKey(name: "to_chat_user") required this.toChatUser});
+ const _$UsersImpl({
+ @JsonKey(name: "from_chat_user") required this.fromChatUser,
+ @JsonKey(name: "to_chat_user") required this.toChatUser,
+ });
factory _$UsersImpl.fromJson(Map json) =>
_$$UsersImplFromJson(json);
@@ -939,17 +1006,15 @@ class _$UsersImpl implements _Users {
@override
Map toJson() {
- return _$$UsersImplToJson(
- this,
- );
+ return _$$UsersImplToJson(this);
}
}
abstract class _Users implements Users {
- const factory _Users(
- {@JsonKey(name: "from_chat_user") required final ChatUser fromChatUser,
- @JsonKey(name: "to_chat_user")
- required final ChatUser toChatUser}) = _$UsersImpl;
+ const factory _Users({
+ @JsonKey(name: "from_chat_user") required final ChatUser fromChatUser,
+ @JsonKey(name: "to_chat_user") required final ChatUser toChatUser,
+ }) = _$UsersImpl;
factory _Users.fromJson(Map