From fc4295e5320939d5626312d88acb3c16f8a3b054 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Tue, 17 Jun 2025 14:53:03 +0330 Subject: [PATCH] feat: new changes in StewardFreeBar model and some change ui --- .../roles_products/roles_products.dart | 108 ++--- .../steward_free_bar/steward_free_bar.dart | 96 ++-- .../steward_free_bar.freezed.dart | 412 +++++++++--------- .../steward_free_bar/steward_free_bar.g.dart | 192 ++++---- .../pages/sales_out_of_province/logic.dart | 12 + .../pages/sales_out_of_province/view.dart | 400 +++++++++-------- 6 files changed, 611 insertions(+), 609 deletions(-) diff --git a/packages/chicken/lib/data/models/response/roles_products/roles_products.dart b/packages/chicken/lib/data/models/response/roles_products/roles_products.dart index 4be9533..34b30f0 100644 --- a/packages/chicken/lib/data/models/response/roles_products/roles_products.dart +++ b/packages/chicken/lib/data/models/response/roles_products/roles_products.dart @@ -1,4 +1,3 @@ - import 'package:freezed_annotation/freezed_annotation.dart'; part 'roles_products.freezed.dart'; @@ -6,62 +5,63 @@ part 'roles_products.g.dart'; @freezed abstract class RolesProductsModel with _$RolesProductsModel { -factory RolesProductsModel({ -required List products, -}) = _RolesProductsModel; + factory RolesProductsModel({required List products}) = + _RolesProductsModel; -factory RolesProductsModel.fromJson(Map json) => _$RolesProductsModelFromJson(json); + factory RolesProductsModel.fromJson(Map json) => + _$RolesProductsModelFromJson(json); } @freezed abstract class ProductModel with _$ProductModel { -factory ProductModel({ -int? id, -String? key, -String? create_date, // Changed from createDate, removed @JsonKey -String? modify_date, // Changed from modifyDate, removed @JsonKey -bool? trash, -String? name, - int? provinceGovernmentalCarcassesQuantity, - int? provinceGovernmentalCarcassesWeight, -int? provinceFreeCarcassesQuantity, -int? provinceFreeCarcassesWeight, -int? receiveGovernmentalCarcassesQuantity, -int? receiveGovernmentalCarcassesWeight, - int? receiveFreeCarcassesQuantity, -int? receiveFreeCarcassesWeight, - int? freeBuyingCarcassesQuantity, -int? freeBuyingCarcassesWeight, - int? totalGovernmentalCarcassesQuantity, -int? totalGovernmentalCarcassesWeight, -int? totalFreeBarsCarcassesQuantity, - int? totalFreeBarsCarcassesWeight, - double? weightAverage, -int? totalCarcassesQuantity, -int? totalCarcassesWeight, - int? freezingQuantity, -int? freezingWeight, -int? lossWeight, - int? outProvinceAllocatedQuantity, - int? outProvinceAllocatedWeight, -int? provinceAllocatedQuantity, -int? provinceAllocatedWeight, - int? realAllocatedQuantity, -int? realAllocatedWeight, -int? coldHouseAllocatedWeight, - int? posAllocatedWeight, -int? segmentationWeight, -int? totalRemainQuantity, - int? totalRemainWeight, - int? freePrice, -int? approvedPrice, - bool? approvedPriceStatus, - dynamic createdBy, - dynamic modifiedBy, -int? parentProduct, - dynamic killHouse, -int? guild, -}) = _ProductModel; + factory ProductModel({ + int? id, + String? key, + String? create_date, // Changed from createDate, removed @JsonKey + String? modify_date, // Changed from modifyDate, removed @JsonKey + bool? trash, + String? name, + int? provinceGovernmentalCarcassesQuantity, + int? provinceGovernmentalCarcassesWeight, + int? provinceFreeCarcassesQuantity, + int? provinceFreeCarcassesWeight, + int? receiveGovernmentalCarcassesQuantity, + int? receiveGovernmentalCarcassesWeight, + int? receiveFreeCarcassesQuantity, + int? receiveFreeCarcassesWeight, + int? freeBuyingCarcassesQuantity, + int? freeBuyingCarcassesWeight, + int? totalGovernmentalCarcassesQuantity, + int? totalGovernmentalCarcassesWeight, + int? totalFreeBarsCarcassesQuantity, + int? totalFreeBarsCarcassesWeight, + double? weightAverage, + int? totalCarcassesQuantity, + int? totalCarcassesWeight, + int? freezingQuantity, + int? freezingWeight, + int? lossWeight, + int? outProvinceAllocatedQuantity, + int? outProvinceAllocatedWeight, + int? provinceAllocatedQuantity, + int? provinceAllocatedWeight, + int? realAllocatedQuantity, + int? realAllocatedWeight, + int? coldHouseAllocatedWeight, + int? posAllocatedWeight, + int? segmentationWeight, + int? totalRemainQuantity, + int? totalRemainWeight, + int? freePrice, + int? approvedPrice, + bool? approvedPriceStatus, + dynamic createdBy, + dynamic modifiedBy, + int? parentProduct, + dynamic killHouse, + int? guild, + }) = _ProductModel; -factory ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); -} \ No newline at end of file + factory ProductModel.fromJson(Map json) => + _$ProductModelFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.dart b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.dart index 359451a..9247f9f 100644 --- a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.dart +++ b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.dart @@ -24,27 +24,27 @@ abstract class Result with _$Result { dynamic guild, Product? product, String? key, - String? create_date, - String? modify_date, + String? createDate, + String? modifyDate, bool? trash, - String? kill_house_name, - String? kill_house_mobile, - String? kill_house_vet_name, - String? kill_house_vet_mobile, + String? killHouseName, + String? killHouseMobile, + String? killHouseVetName, + String? killHouseVetMobile, String? province, String? city, - String? driver_name, - String? driver_mobile, + String? driverName, + String? driverMobile, dynamic car, String? pelak, - int? number_of_carcasses, - int? weight_of_carcasses, - String? bar_image, + int? numberOfCarcasses, + double? weightOfCarcasses, + String? barImage, String? date, - bool? temporary_trash, - bool? temporary_deleted, - String? created_by, - String? modified_by, + bool? temporaryTrash, + bool? temporaryDeleted, + String? createdBy, + String? modifiedBy, }) = _Result; factory Result.fromJson(Map json) => _$ResultFromJson(json); @@ -54,15 +54,15 @@ abstract class Result with _$Result { abstract class Steward with _$Steward { const factory Steward({ User? user, - String? guilds_name, + String? guildsName, bool? steward, - dynamic allocation_limit, + int? allocationLimit, Address? address, - String? license_number, - String? type_activity, - String? area_activity, - String? guilds_id, - String? create_date, + String? licenseNumber, + String? typeActivity, + String? areaActivity, + String? guildsId, + String? createDate, }) = _Steward; factory Steward.fromJson(Map json) => _$StewardFromJson(json); @@ -72,22 +72,22 @@ abstract class Steward with _$Steward { abstract class User with _$User { const factory User({ String? fullname, - String? first_name, - String? last_name, - int? base_order, + String? firstName, + String? lastName, + int? baseOrder, String? mobile, - String? national_id, - String? national_code, + String? nationalId, + String? nationalCode, String? key, City? city, - String? unit_name, - String? unit_national_id, - String? unit_registration_number, - String? unit_economical_number, - String? unit_province, - String? unit_city, - String? unit_postal_code, - String? unit_address, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, }) = _User; factory User.fromJson(Map json) => _$UserFromJson(json); @@ -98,20 +98,20 @@ abstract class City with _$City { const factory City({ int? id, String? key, - String? create_date, - String? modify_date, + String? createDate, + String? modifyDate, bool? trash, - int? province_id_foreign_key, - int? city_id_key, + int? provinceIdForeignKey, + int? cityIdKey, String? name, - int? product_price, - bool? province_center, - int? city_number, - String? city_name, - int? province_number, - String? province_name, - String? created_by, - String? modified_by, + double? productPrice, + bool? provinceCenter, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + String? createdBy, + String? modifiedBy, int? province, }) = _City; @@ -124,7 +124,7 @@ abstract class Address with _$Address { Province? province, City? city, String? address, - String? postal_code, + String? postalCode, }) = _Address; factory Address.fromJson(Map json) => _$AddressFromJson(json); diff --git a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart index 84c082a..1e99c86 100644 --- a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart +++ b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart @@ -166,7 +166,7 @@ as List?, /// @nodoc mixin _$Result { - int? get id; Steward? get steward; dynamic get guild; Product? get product; String? get key; String? get create_date; String? get modify_date; bool? get trash; String? get kill_house_name; String? get kill_house_mobile; String? get kill_house_vet_name; String? get kill_house_vet_mobile; String? get province; String? get city; String? get driver_name; String? get driver_mobile; dynamic get car; String? get pelak; int? get number_of_carcasses; int? get weight_of_carcasses; String? get bar_image; String? get date; bool? get temporary_trash; bool? get temporary_deleted; String? get created_by; String? get modified_by; + int? get id; Steward? get steward; dynamic get guild; Product? get product; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get killHouseName; String? get killHouseMobile; String? get killHouseVetName; String? get killHouseVetMobile; String? get province; String? get city; String? get driverName; String? get driverMobile; dynamic get car; String? get pelak; int? get numberOfCarcasses; double? get weightOfCarcasses; String? get barImage; String? get date; bool? get temporaryTrash; bool? get temporaryDeleted; String? get createdBy; String? get modifiedBy; /// Create a copy of Result /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -179,16 +179,16 @@ $ResultCopyWith get copyWith => _$ResultCopyWithImpl(this as Res @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.kill_house_name, kill_house_name) || other.kill_house_name == kill_house_name)&&(identical(other.kill_house_mobile, kill_house_mobile) || other.kill_house_mobile == kill_house_mobile)&&(identical(other.kill_house_vet_name, kill_house_vet_name) || other.kill_house_vet_name == kill_house_vet_name)&&(identical(other.kill_house_vet_mobile, kill_house_vet_mobile) || other.kill_house_vet_mobile == kill_house_vet_mobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driver_name, driver_name) || other.driver_name == driver_name)&&(identical(other.driver_mobile, driver_mobile) || other.driver_mobile == driver_mobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.bar_image, bar_image) || other.bar_image == bar_image)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.killHouseVetName, killHouseVetName) || other.killHouseVetName == killHouseVetName)&&(identical(other.killHouseVetMobile, killHouseVetMobile) || other.killHouseVetMobile == killHouseVetMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,create_date,modify_date,trash,kill_house_name,kill_house_mobile,kill_house_vet_name,kill_house_vet_mobile,province,city,driver_name,driver_mobile,const DeepCollectionEquality().hash(car),pelak,number_of_carcasses,weight_of_carcasses,bar_image,date,temporary_trash,temporary_deleted,created_by,modified_by]); +int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,createDate,modifyDate,trash,killHouseName,killHouseMobile,killHouseVetName,killHouseVetMobile,province,city,driverName,driverMobile,const DeepCollectionEquality().hash(car),pelak,numberOfCarcasses,weightOfCarcasses,barImage,date,temporaryTrash,temporaryDeleted,createdBy,modifiedBy]); @override String toString() { - return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, kill_house_name: $kill_house_name, kill_house_mobile: $kill_house_mobile, kill_house_vet_name: $kill_house_vet_name, kill_house_vet_mobile: $kill_house_vet_mobile, province: $province, city: $city, driver_name: $driver_name, driver_mobile: $driver_mobile, car: $car, pelak: $pelak, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, bar_image: $bar_image, date: $date, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by)'; + return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, killHouseVetName: $killHouseVetName, killHouseVetMobile: $killHouseVetMobile, province: $province, city: $city, driverName: $driverName, driverMobile: $driverMobile, car: $car, pelak: $pelak, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, barImage: $barImage, date: $date, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy)'; } @@ -199,7 +199,7 @@ abstract mixin class $ResultCopyWith<$Res> { factory $ResultCopyWith(Result value, $Res Function(Result) _then) = _$ResultCopyWithImpl; @useResult $Res call({ - int? id, Steward? steward, dynamic guild, Product? product, String? key, String? create_date, String? modify_date, bool? trash, String? kill_house_name, String? kill_house_mobile, String? kill_house_vet_name, String? kill_house_vet_mobile, String? province, String? city, String? driver_name, String? driver_mobile, dynamic car, String? pelak, int? number_of_carcasses, int? weight_of_carcasses, String? bar_image, String? date, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by + int? id, Steward? steward, dynamic guild, Product? product, String? key, String? createDate, String? modifyDate, bool? trash, String? killHouseName, String? killHouseMobile, String? killHouseVetName, String? killHouseVetMobile, String? province, String? city, String? driverName, String? driverMobile, dynamic car, String? pelak, int? numberOfCarcasses, double? weightOfCarcasses, String? barImage, String? date, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy }); @@ -216,34 +216,34 @@ class _$ResultCopyWithImpl<$Res> /// Create a copy of Result /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? kill_house_name = freezed,Object? kill_house_mobile = freezed,Object? kill_house_vet_name = freezed,Object? kill_house_vet_mobile = freezed,Object? province = freezed,Object? city = freezed,Object? driver_name = freezed,Object? driver_mobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? bar_image = freezed,Object? date = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? killHouseVetName = freezed,Object? killHouseVetMobile = freezed,Object? province = freezed,Object? city = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? barImage = freezed,Object? date = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable -as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // ignore: cast_nullable_to_non_nullable -as String?,kill_house_mobile: freezed == kill_house_mobile ? _self.kill_house_mobile : kill_house_mobile // ignore: cast_nullable_to_non_nullable -as String?,kill_house_vet_name: freezed == kill_house_vet_name ? _self.kill_house_vet_name : kill_house_vet_name // ignore: cast_nullable_to_non_nullable -as String?,kill_house_vet_mobile: freezed == kill_house_vet_mobile ? _self.kill_house_vet_mobile : kill_house_vet_mobile // ignore: cast_nullable_to_non_nullable +as bool?,killHouseName: freezed == killHouseName ? _self.killHouseName : killHouseName // ignore: cast_nullable_to_non_nullable +as String?,killHouseMobile: freezed == killHouseMobile ? _self.killHouseMobile : killHouseMobile // ignore: cast_nullable_to_non_nullable +as String?,killHouseVetName: freezed == killHouseVetName ? _self.killHouseVetName : killHouseVetName // ignore: cast_nullable_to_non_nullable +as String?,killHouseVetMobile: freezed == killHouseVetMobile ? _self.killHouseVetMobile : killHouseVetMobile // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable -as String?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // ignore: cast_nullable_to_non_nullable -as String?,driver_mobile: freezed == driver_mobile ? _self.driver_mobile : driver_mobile // ignore: cast_nullable_to_non_nullable +as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable -as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // ignore: cast_nullable_to_non_nullable +as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable -as String?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable -as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -279,7 +279,7 @@ $ProductCopyWith<$Res>? get product { @JsonSerializable() class _Result implements Result { - const _Result({this.id, this.steward, this.guild, this.product, this.key, this.create_date, this.modify_date, this.trash, this.kill_house_name, this.kill_house_mobile, this.kill_house_vet_name, this.kill_house_vet_mobile, this.province, this.city, this.driver_name, this.driver_mobile, this.car, this.pelak, this.number_of_carcasses, this.weight_of_carcasses, this.bar_image, this.date, this.temporary_trash, this.temporary_deleted, this.created_by, this.modified_by}); + const _Result({this.id, this.steward, this.guild, this.product, this.key, this.createDate, this.modifyDate, this.trash, this.killHouseName, this.killHouseMobile, this.killHouseVetName, this.killHouseVetMobile, this.province, this.city, this.driverName, this.driverMobile, this.car, this.pelak, this.numberOfCarcasses, this.weightOfCarcasses, this.barImage, this.date, this.temporaryTrash, this.temporaryDeleted, this.createdBy, this.modifiedBy}); factory _Result.fromJson(Map json) => _$ResultFromJson(json); @override final int? id; @@ -287,27 +287,27 @@ class _Result implements Result { @override final dynamic guild; @override final Product? product; @override final String? key; -@override final String? create_date; -@override final String? modify_date; +@override final String? createDate; +@override final String? modifyDate; @override final bool? trash; -@override final String? kill_house_name; -@override final String? kill_house_mobile; -@override final String? kill_house_vet_name; -@override final String? kill_house_vet_mobile; +@override final String? killHouseName; +@override final String? killHouseMobile; +@override final String? killHouseVetName; +@override final String? killHouseVetMobile; @override final String? province; @override final String? city; -@override final String? driver_name; -@override final String? driver_mobile; +@override final String? driverName; +@override final String? driverMobile; @override final dynamic car; @override final String? pelak; -@override final int? number_of_carcasses; -@override final int? weight_of_carcasses; -@override final String? bar_image; +@override final int? numberOfCarcasses; +@override final double? weightOfCarcasses; +@override final String? barImage; @override final String? date; -@override final bool? temporary_trash; -@override final bool? temporary_deleted; -@override final String? created_by; -@override final String? modified_by; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final String? createdBy; +@override final String? modifiedBy; /// Create a copy of Result /// with the given fields replaced by the non-null parameter values. @@ -322,16 +322,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.kill_house_name, kill_house_name) || other.kill_house_name == kill_house_name)&&(identical(other.kill_house_mobile, kill_house_mobile) || other.kill_house_mobile == kill_house_mobile)&&(identical(other.kill_house_vet_name, kill_house_vet_name) || other.kill_house_vet_name == kill_house_vet_name)&&(identical(other.kill_house_vet_mobile, kill_house_vet_mobile) || other.kill_house_vet_mobile == kill_house_vet_mobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driver_name, driver_name) || other.driver_name == driver_name)&&(identical(other.driver_mobile, driver_mobile) || other.driver_mobile == driver_mobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.bar_image, bar_image) || other.bar_image == bar_image)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.killHouseVetName, killHouseVetName) || other.killHouseVetName == killHouseVetName)&&(identical(other.killHouseVetMobile, killHouseVetMobile) || other.killHouseVetMobile == killHouseVetMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,create_date,modify_date,trash,kill_house_name,kill_house_mobile,kill_house_vet_name,kill_house_vet_mobile,province,city,driver_name,driver_mobile,const DeepCollectionEquality().hash(car),pelak,number_of_carcasses,weight_of_carcasses,bar_image,date,temporary_trash,temporary_deleted,created_by,modified_by]); +int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,createDate,modifyDate,trash,killHouseName,killHouseMobile,killHouseVetName,killHouseVetMobile,province,city,driverName,driverMobile,const DeepCollectionEquality().hash(car),pelak,numberOfCarcasses,weightOfCarcasses,barImage,date,temporaryTrash,temporaryDeleted,createdBy,modifiedBy]); @override String toString() { - return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, kill_house_name: $kill_house_name, kill_house_mobile: $kill_house_mobile, kill_house_vet_name: $kill_house_vet_name, kill_house_vet_mobile: $kill_house_vet_mobile, province: $province, city: $city, driver_name: $driver_name, driver_mobile: $driver_mobile, car: $car, pelak: $pelak, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, bar_image: $bar_image, date: $date, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by)'; + return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, killHouseVetName: $killHouseVetName, killHouseVetMobile: $killHouseVetMobile, province: $province, city: $city, driverName: $driverName, driverMobile: $driverMobile, car: $car, pelak: $pelak, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, barImage: $barImage, date: $date, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy)'; } @@ -342,7 +342,7 @@ abstract mixin class _$ResultCopyWith<$Res> implements $ResultCopyWith<$Res> { factory _$ResultCopyWith(_Result value, $Res Function(_Result) _then) = __$ResultCopyWithImpl; @override @useResult $Res call({ - int? id, Steward? steward, dynamic guild, Product? product, String? key, String? create_date, String? modify_date, bool? trash, String? kill_house_name, String? kill_house_mobile, String? kill_house_vet_name, String? kill_house_vet_mobile, String? province, String? city, String? driver_name, String? driver_mobile, dynamic car, String? pelak, int? number_of_carcasses, int? weight_of_carcasses, String? bar_image, String? date, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by + int? id, Steward? steward, dynamic guild, Product? product, String? key, String? createDate, String? modifyDate, bool? trash, String? killHouseName, String? killHouseMobile, String? killHouseVetName, String? killHouseVetMobile, String? province, String? city, String? driverName, String? driverMobile, dynamic car, String? pelak, int? numberOfCarcasses, double? weightOfCarcasses, String? barImage, String? date, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy }); @@ -359,34 +359,34 @@ class __$ResultCopyWithImpl<$Res> /// Create a copy of Result /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? kill_house_name = freezed,Object? kill_house_mobile = freezed,Object? kill_house_vet_name = freezed,Object? kill_house_vet_mobile = freezed,Object? province = freezed,Object? city = freezed,Object? driver_name = freezed,Object? driver_mobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? bar_image = freezed,Object? date = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? killHouseVetName = freezed,Object? killHouseVetMobile = freezed,Object? province = freezed,Object? city = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? barImage = freezed,Object? date = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { return _then(_Result( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable -as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // ignore: cast_nullable_to_non_nullable -as String?,kill_house_mobile: freezed == kill_house_mobile ? _self.kill_house_mobile : kill_house_mobile // ignore: cast_nullable_to_non_nullable -as String?,kill_house_vet_name: freezed == kill_house_vet_name ? _self.kill_house_vet_name : kill_house_vet_name // ignore: cast_nullable_to_non_nullable -as String?,kill_house_vet_mobile: freezed == kill_house_vet_mobile ? _self.kill_house_vet_mobile : kill_house_vet_mobile // ignore: cast_nullable_to_non_nullable +as bool?,killHouseName: freezed == killHouseName ? _self.killHouseName : killHouseName // ignore: cast_nullable_to_non_nullable +as String?,killHouseMobile: freezed == killHouseMobile ? _self.killHouseMobile : killHouseMobile // ignore: cast_nullable_to_non_nullable +as String?,killHouseVetName: freezed == killHouseVetName ? _self.killHouseVetName : killHouseVetName // ignore: cast_nullable_to_non_nullable +as String?,killHouseVetMobile: freezed == killHouseVetMobile ? _self.killHouseVetMobile : killHouseVetMobile // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable -as String?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // ignore: cast_nullable_to_non_nullable -as String?,driver_mobile: freezed == driver_mobile ? _self.driver_mobile : driver_mobile // ignore: cast_nullable_to_non_nullable +as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable -as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // ignore: cast_nullable_to_non_nullable +as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable -as String?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable -as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -422,7 +422,7 @@ $ProductCopyWith<$Res>? get product { /// @nodoc mixin _$Steward { - User? get user; String? get guilds_name; bool? get steward; dynamic get allocation_limit; Address? get address; String? get license_number; String? get type_activity; String? get area_activity; String? get guilds_id; String? get create_date; + User? get user; String? get guildsName; bool? get steward; int? get allocationLimit; Address? get address; String? get licenseNumber; String? get typeActivity; String? get areaActivity; String? get guildsId; String? get createDate; /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -435,16 +435,16 @@ $StewardCopyWith get copyWith => _$StewardCopyWithImpl(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.address, address) || other.address == address)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.create_date, create_date) || other.create_date == create_date)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.address, address) || other.address == address)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.createDate, createDate) || other.createDate == createDate)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,user,guilds_name,steward,const DeepCollectionEquality().hash(allocation_limit),address,license_number,type_activity,area_activity,guilds_id,create_date); +int get hashCode => Object.hash(runtimeType,user,guildsName,steward,allocationLimit,address,licenseNumber,typeActivity,areaActivity,guildsId,createDate); @override String toString() { - return 'Steward(user: $user, guilds_name: $guilds_name, steward: $steward, allocation_limit: $allocation_limit, address: $address, license_number: $license_number, type_activity: $type_activity, area_activity: $area_activity, guilds_id: $guilds_id, create_date: $create_date)'; + return 'Steward(user: $user, guildsName: $guildsName, steward: $steward, allocationLimit: $allocationLimit, address: $address, licenseNumber: $licenseNumber, typeActivity: $typeActivity, areaActivity: $areaActivity, guildsId: $guildsId, createDate: $createDate)'; } @@ -455,7 +455,7 @@ abstract mixin class $StewardCopyWith<$Res> { factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl; @useResult $Res call({ - User? user, String? guilds_name, bool? steward, dynamic allocation_limit, Address? address, String? license_number, String? type_activity, String? area_activity, String? guilds_id, String? create_date + User? user, String? guildsName, bool? steward, int? allocationLimit, Address? address, String? licenseNumber, String? typeActivity, String? areaActivity, String? guildsId, String? createDate }); @@ -472,18 +472,18 @@ class _$StewardCopyWithImpl<$Res> /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? guilds_name = freezed,Object? steward = freezed,Object? allocation_limit = freezed,Object? address = freezed,Object? license_number = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? guilds_id = freezed,Object? create_date = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? allocationLimit = freezed,Object? address = freezed,Object? licenseNumber = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? guildsId = freezed,Object? createDate = freezed,}) { return _then(_self.copyWith( user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable -as User?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as User?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable -as bool?,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable -as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable -as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable -as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as bool?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable +as String?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -519,19 +519,19 @@ $AddressCopyWith<$Res>? get address { @JsonSerializable() class _Steward implements Steward { - const _Steward({this.user, this.guilds_name, this.steward, this.allocation_limit, this.address, this.license_number, this.type_activity, this.area_activity, this.guilds_id, this.create_date}); + const _Steward({this.user, this.guildsName, this.steward, this.allocationLimit, this.address, this.licenseNumber, this.typeActivity, this.areaActivity, this.guildsId, this.createDate}); factory _Steward.fromJson(Map json) => _$StewardFromJson(json); @override final User? user; -@override final String? guilds_name; +@override final String? guildsName; @override final bool? steward; -@override final dynamic allocation_limit; +@override final int? allocationLimit; @override final Address? address; -@override final String? license_number; -@override final String? type_activity; -@override final String? area_activity; -@override final String? guilds_id; -@override final String? create_date; +@override final String? licenseNumber; +@override final String? typeActivity; +@override final String? areaActivity; +@override final String? guildsId; +@override final String? createDate; /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @@ -546,16 +546,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.address, address) || other.address == address)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.create_date, create_date) || other.create_date == create_date)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.address, address) || other.address == address)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.createDate, createDate) || other.createDate == createDate)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,user,guilds_name,steward,const DeepCollectionEquality().hash(allocation_limit),address,license_number,type_activity,area_activity,guilds_id,create_date); +int get hashCode => Object.hash(runtimeType,user,guildsName,steward,allocationLimit,address,licenseNumber,typeActivity,areaActivity,guildsId,createDate); @override String toString() { - return 'Steward(user: $user, guilds_name: $guilds_name, steward: $steward, allocation_limit: $allocation_limit, address: $address, license_number: $license_number, type_activity: $type_activity, area_activity: $area_activity, guilds_id: $guilds_id, create_date: $create_date)'; + return 'Steward(user: $user, guildsName: $guildsName, steward: $steward, allocationLimit: $allocationLimit, address: $address, licenseNumber: $licenseNumber, typeActivity: $typeActivity, areaActivity: $areaActivity, guildsId: $guildsId, createDate: $createDate)'; } @@ -566,7 +566,7 @@ abstract mixin class _$StewardCopyWith<$Res> implements $StewardCopyWith<$Res> { factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl; @override @useResult $Res call({ - User? user, String? guilds_name, bool? steward, dynamic allocation_limit, Address? address, String? license_number, String? type_activity, String? area_activity, String? guilds_id, String? create_date + User? user, String? guildsName, bool? steward, int? allocationLimit, Address? address, String? licenseNumber, String? typeActivity, String? areaActivity, String? guildsId, String? createDate }); @@ -583,18 +583,18 @@ class __$StewardCopyWithImpl<$Res> /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? guilds_name = freezed,Object? steward = freezed,Object? allocation_limit = freezed,Object? address = freezed,Object? license_number = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? guilds_id = freezed,Object? create_date = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? allocationLimit = freezed,Object? address = freezed,Object? licenseNumber = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? guildsId = freezed,Object? createDate = freezed,}) { return _then(_Steward( user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable -as User?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as User?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable -as bool?,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable -as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable -as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable -as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as bool?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable +as String?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -630,7 +630,7 @@ $AddressCopyWith<$Res>? get address { /// @nodoc mixin _$User { - String? get fullname; String? get first_name; String? get last_name; int? get base_order; String? get mobile; String? get national_id; String? get national_code; String? get key; City? get city; String? get unit_name; String? get unit_national_id; String? get unit_registration_number; String? get unit_economical_number; String? get unit_province; String? get unit_city; String? get unit_postal_code; String? get unit_address; + String? get fullname; String? get firstName; String? get lastName; int? get baseOrder; String? get mobile; String? get nationalId; String? get nationalCode; String? get key; City? get city; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -643,16 +643,16 @@ $UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$ide @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.base_order, base_order) || other.base_order == base_order)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.national_code, national_code) || other.national_code == national_code)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unit_name, unit_name) || other.unit_name == unit_name)&&(identical(other.unit_national_id, unit_national_id) || other.unit_national_id == unit_national_id)&&(identical(other.unit_registration_number, unit_registration_number) || other.unit_registration_number == unit_registration_number)&&(identical(other.unit_economical_number, unit_economical_number) || other.unit_economical_number == unit_economical_number)&&(identical(other.unit_province, unit_province) || other.unit_province == unit_province)&&(identical(other.unit_city, unit_city) || other.unit_city == unit_city)&&(identical(other.unit_postal_code, unit_postal_code) || other.unit_postal_code == unit_postal_code)&&(identical(other.unit_address, unit_address) || other.unit_address == unit_address)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,base_order,mobile,national_id,national_code,key,city,unit_name,unit_national_id,unit_registration_number,unit_economical_number,unit_province,unit_city,unit_postal_code,unit_address); +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); @override String toString() { - return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, base_order: $base_order, mobile: $mobile, national_id: $national_id, national_code: $national_code, key: $key, city: $city, unit_name: $unit_name, unit_national_id: $unit_national_id, unit_registration_number: $unit_registration_number, unit_economical_number: $unit_economical_number, unit_province: $unit_province, unit_city: $unit_city, unit_postal_code: $unit_postal_code, unit_address: $unit_address)'; + return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; } @@ -663,7 +663,7 @@ abstract mixin class $UserCopyWith<$Res> { factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; @useResult $Res call({ - String? fullname, String? first_name, String? last_name, int? base_order, String? mobile, String? national_id, String? national_code, String? key, City? city, String? unit_name, String? unit_national_id, String? unit_registration_number, String? unit_economical_number, String? unit_province, String? unit_city, String? unit_postal_code, String? unit_address + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress }); @@ -680,25 +680,25 @@ class _$UserCopyWithImpl<$Res> /// Create a copy of User /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? base_order = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? national_code = freezed,Object? key = freezed,Object? city = freezed,Object? unit_name = freezed,Object? unit_national_id = freezed,Object? unit_registration_number = freezed,Object? unit_economical_number = freezed,Object? unit_province = freezed,Object? unit_city = freezed,Object? unit_postal_code = freezed,Object? unit_address = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { return _then(_self.copyWith( fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable -as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable -as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable -as String?,base_order: freezed == base_order ? _self.base_order : base_order // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable -as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable -as String?,national_code: freezed == national_code ? _self.national_code : national_code // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable -as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // ignore: cast_nullable_to_non_nullable -as String?,unit_national_id: freezed == unit_national_id ? _self.unit_national_id : unit_national_id // ignore: cast_nullable_to_non_nullable -as String?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // ignore: cast_nullable_to_non_nullable -as String?,unit_economical_number: freezed == unit_economical_number ? _self.unit_economical_number : unit_economical_number // ignore: cast_nullable_to_non_nullable -as String?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // ignore: cast_nullable_to_non_nullable -as String?,unit_city: freezed == unit_city ? _self.unit_city : unit_city // ignore: cast_nullable_to_non_nullable -as String?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // ignore: cast_nullable_to_non_nullable -as String?,unit_address: freezed == unit_address ? _self.unit_address : unit_address // ignore: cast_nullable_to_non_nullable +as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -722,26 +722,26 @@ $CityCopyWith<$Res>? get city { @JsonSerializable() class _User implements User { - const _User({this.fullname, this.first_name, this.last_name, this.base_order, this.mobile, this.national_id, this.national_code, this.key, this.city, this.unit_name, this.unit_national_id, this.unit_registration_number, this.unit_economical_number, this.unit_province, this.unit_city, this.unit_postal_code, this.unit_address}); + const _User({this.fullname, this.firstName, this.lastName, this.baseOrder, this.mobile, this.nationalId, this.nationalCode, this.key, this.city, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}); factory _User.fromJson(Map json) => _$UserFromJson(json); @override final String? fullname; -@override final String? first_name; -@override final String? last_name; -@override final int? base_order; +@override final String? firstName; +@override final String? lastName; +@override final int? baseOrder; @override final String? mobile; -@override final String? national_id; -@override final String? national_code; +@override final String? nationalId; +@override final String? nationalCode; @override final String? key; @override final City? city; -@override final String? unit_name; -@override final String? unit_national_id; -@override final String? unit_registration_number; -@override final String? unit_economical_number; -@override final String? unit_province; -@override final String? unit_city; -@override final String? unit_postal_code; -@override final String? unit_address; +@override final String? unitName; +@override final String? unitNationalId; +@override final String? unitRegistrationNumber; +@override final String? unitEconomicalNumber; +@override final String? unitProvince; +@override final String? unitCity; +@override final String? unitPostalCode; +@override final String? unitAddress; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @@ -756,16 +756,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.base_order, base_order) || other.base_order == base_order)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.national_code, national_code) || other.national_code == national_code)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unit_name, unit_name) || other.unit_name == unit_name)&&(identical(other.unit_national_id, unit_national_id) || other.unit_national_id == unit_national_id)&&(identical(other.unit_registration_number, unit_registration_number) || other.unit_registration_number == unit_registration_number)&&(identical(other.unit_economical_number, unit_economical_number) || other.unit_economical_number == unit_economical_number)&&(identical(other.unit_province, unit_province) || other.unit_province == unit_province)&&(identical(other.unit_city, unit_city) || other.unit_city == unit_city)&&(identical(other.unit_postal_code, unit_postal_code) || other.unit_postal_code == unit_postal_code)&&(identical(other.unit_address, unit_address) || other.unit_address == unit_address)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,base_order,mobile,national_id,national_code,key,city,unit_name,unit_national_id,unit_registration_number,unit_economical_number,unit_province,unit_city,unit_postal_code,unit_address); +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); @override String toString() { - return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, base_order: $base_order, mobile: $mobile, national_id: $national_id, national_code: $national_code, key: $key, city: $city, unit_name: $unit_name, unit_national_id: $unit_national_id, unit_registration_number: $unit_registration_number, unit_economical_number: $unit_economical_number, unit_province: $unit_province, unit_city: $unit_city, unit_postal_code: $unit_postal_code, unit_address: $unit_address)'; + return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; } @@ -776,7 +776,7 @@ abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; @override @useResult $Res call({ - String? fullname, String? first_name, String? last_name, int? base_order, String? mobile, String? national_id, String? national_code, String? key, City? city, String? unit_name, String? unit_national_id, String? unit_registration_number, String? unit_economical_number, String? unit_province, String? unit_city, String? unit_postal_code, String? unit_address + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress }); @@ -793,25 +793,25 @@ class __$UserCopyWithImpl<$Res> /// Create a copy of User /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? base_order = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? national_code = freezed,Object? key = freezed,Object? city = freezed,Object? unit_name = freezed,Object? unit_national_id = freezed,Object? unit_registration_number = freezed,Object? unit_economical_number = freezed,Object? unit_province = freezed,Object? unit_city = freezed,Object? unit_postal_code = freezed,Object? unit_address = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { return _then(_User( fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable -as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable -as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable -as String?,base_order: freezed == base_order ? _self.base_order : base_order // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable -as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable -as String?,national_code: freezed == national_code ? _self.national_code : national_code // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable -as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // ignore: cast_nullable_to_non_nullable -as String?,unit_national_id: freezed == unit_national_id ? _self.unit_national_id : unit_national_id // ignore: cast_nullable_to_non_nullable -as String?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // ignore: cast_nullable_to_non_nullable -as String?,unit_economical_number: freezed == unit_economical_number ? _self.unit_economical_number : unit_economical_number // ignore: cast_nullable_to_non_nullable -as String?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // ignore: cast_nullable_to_non_nullable -as String?,unit_city: freezed == unit_city ? _self.unit_city : unit_city // ignore: cast_nullable_to_non_nullable -as String?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // ignore: cast_nullable_to_non_nullable -as String?,unit_address: freezed == unit_address ? _self.unit_address : unit_address // ignore: cast_nullable_to_non_nullable +as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -835,7 +835,7 @@ $CityCopyWith<$Res>? get city { /// @nodoc mixin _$City { - int? get id; String? get key; String? get create_date; String? get modify_date; bool? get trash; int? get province_id_foreign_key; int? get city_id_key; String? get name; int? get product_price; bool? get province_center; int? get city_number; String? get city_name; int? get province_number; String? get province_name; String? get created_by; String? get modified_by; int? get province; + int? get id; String? get key; String? get createDate; String? get modifyDate; bool? get trash; int? get provinceIdForeignKey; int? get cityIdKey; String? get name; double? get productPrice; bool? get provinceCenter; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; String? get createdBy; String? get modifiedBy; int? get province; /// Create a copy of City /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -848,16 +848,16 @@ $CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$ide @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.province_id_foreign_key, province_id_foreign_key) || other.province_id_foreign_key == province_id_foreign_key)&&(identical(other.city_id_key, city_id_key) || other.city_id_key == city_id_key)&&(identical(other.name, name) || other.name == name)&&(identical(other.product_price, product_price) || other.product_price == product_price)&&(identical(other.province_center, province_center) || other.province_center == province_center)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&(identical(other.province, province) || other.province == province)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&(identical(other.province, province) || other.province == province)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,id,key,create_date,modify_date,trash,province_id_foreign_key,city_id_key,name,product_price,province_center,city_number,city_name,province_number,province_name,created_by,modified_by,province); +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province); @override String toString() { - return 'City(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, province_id_foreign_key: $province_id_foreign_key, city_id_key: $city_id_key, name: $name, product_price: $product_price, province_center: $province_center, city_number: $city_number, city_name: $city_name, province_number: $province_number, province_name: $province_name, created_by: $created_by, modified_by: $modified_by, province: $province)'; + return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; } @@ -868,7 +868,7 @@ abstract mixin class $CityCopyWith<$Res> { factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; @useResult $Res call({ - int? id, String? key, String? create_date, String? modify_date, bool? trash, int? province_id_foreign_key, int? city_id_key, String? name, int? product_price, bool? province_center, int? city_number, String? city_name, int? province_number, String? province_name, String? created_by, String? modified_by, int? province + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province }); @@ -885,24 +885,24 @@ class _$CityCopyWithImpl<$Res> /// Create a copy of City /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? province_id_foreign_key = freezed,Object? city_id_key = freezed,Object? name = freezed,Object? product_price = freezed,Object? province_center = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? province = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable -as bool?,province_id_foreign_key: freezed == province_id_foreign_key ? _self.province_id_foreign_key : province_id_foreign_key // ignore: cast_nullable_to_non_nullable -as int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable -as String?,product_price: freezed == product_price ? _self.product_price : product_price // ignore: cast_nullable_to_non_nullable -as int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable -as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable -as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable -as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable -as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable -as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as int?, )); @@ -915,25 +915,25 @@ as int?, @JsonSerializable() class _City implements City { - const _City({this.id, this.key, this.create_date, this.modify_date, this.trash, this.province_id_foreign_key, this.city_id_key, this.name, this.product_price, this.province_center, this.city_number, this.city_name, this.province_number, this.province_name, this.created_by, this.modified_by, this.province}); + const _City({this.id, this.key, this.createDate, this.modifyDate, this.trash, this.provinceIdForeignKey, this.cityIdKey, this.name, this.productPrice, this.provinceCenter, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.createdBy, this.modifiedBy, this.province}); factory _City.fromJson(Map json) => _$CityFromJson(json); @override final int? id; @override final String? key; -@override final String? create_date; -@override final String? modify_date; +@override final String? createDate; +@override final String? modifyDate; @override final bool? trash; -@override final int? province_id_foreign_key; -@override final int? city_id_key; +@override final int? provinceIdForeignKey; +@override final int? cityIdKey; @override final String? name; -@override final int? product_price; -@override final bool? province_center; -@override final int? city_number; -@override final String? city_name; -@override final int? province_number; -@override final String? province_name; -@override final String? created_by; -@override final String? modified_by; +@override final double? productPrice; +@override final bool? provinceCenter; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final String? createdBy; +@override final String? modifiedBy; @override final int? province; /// Create a copy of City @@ -949,16 +949,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.province_id_foreign_key, province_id_foreign_key) || other.province_id_foreign_key == province_id_foreign_key)&&(identical(other.city_id_key, city_id_key) || other.city_id_key == city_id_key)&&(identical(other.name, name) || other.name == name)&&(identical(other.product_price, product_price) || other.product_price == product_price)&&(identical(other.province_center, province_center) || other.province_center == province_center)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&(identical(other.province, province) || other.province == province)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&(identical(other.province, province) || other.province == province)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,id,key,create_date,modify_date,trash,province_id_foreign_key,city_id_key,name,product_price,province_center,city_number,city_name,province_number,province_name,created_by,modified_by,province); +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province); @override String toString() { - return 'City(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, province_id_foreign_key: $province_id_foreign_key, city_id_key: $city_id_key, name: $name, product_price: $product_price, province_center: $province_center, city_number: $city_number, city_name: $city_name, province_number: $province_number, province_name: $province_name, created_by: $created_by, modified_by: $modified_by, province: $province)'; + return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; } @@ -969,7 +969,7 @@ abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; @override @useResult $Res call({ - int? id, String? key, String? create_date, String? modify_date, bool? trash, int? province_id_foreign_key, int? city_id_key, String? name, int? product_price, bool? province_center, int? city_number, String? city_name, int? province_number, String? province_name, String? created_by, String? modified_by, int? province + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province }); @@ -986,24 +986,24 @@ class __$CityCopyWithImpl<$Res> /// Create a copy of City /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? province_id_foreign_key = freezed,Object? city_id_key = freezed,Object? name = freezed,Object? product_price = freezed,Object? province_center = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? province = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { return _then(_City( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable -as bool?,province_id_foreign_key: freezed == province_id_foreign_key ? _self.province_id_foreign_key : province_id_foreign_key // ignore: cast_nullable_to_non_nullable -as int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable -as String?,product_price: freezed == product_price ? _self.product_price : product_price // ignore: cast_nullable_to_non_nullable -as int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable -as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable -as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable -as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable -as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable -as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as int?, )); @@ -1016,7 +1016,7 @@ as int?, /// @nodoc mixin _$Address { - Province? get province; City? get city; String? get address; String? get postal_code; + Province? get province; City? get city; String? get address; String? get postalCode; /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -1029,16 +1029,16 @@ $AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); @override String toString() { - return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; } @@ -1049,7 +1049,7 @@ abstract mixin class $AddressCopyWith<$Res> { factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; @useResult $Res call({ - Province? province, City? city, String? address, String? postal_code + Province? province, City? city, String? address, String? postalCode }); @@ -1066,12 +1066,12 @@ class _$AddressCopyWithImpl<$Res> /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { return _then(_self.copyWith( province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1107,13 +1107,13 @@ $CityCopyWith<$Res>? get city { @JsonSerializable() class _Address implements Address { - const _Address({this.province, this.city, this.address, this.postal_code}); + const _Address({this.province, this.city, this.address, this.postalCode}); factory _Address.fromJson(Map json) => _$AddressFromJson(json); @override final Province? province; @override final City? city; @override final String? address; -@override final String? postal_code; +@override final String? postalCode; /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. @@ -1128,16 +1128,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); @override String toString() { - return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; } @@ -1148,7 +1148,7 @@ abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; @override @useResult $Res call({ - Province? province, City? city, String? address, String? postal_code + Province? province, City? city, String? address, String? postalCode }); @@ -1165,12 +1165,12 @@ class __$AddressCopyWithImpl<$Res> /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { return _then(_Address( province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable as String?, )); } diff --git a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart index 3059d21..b895764 100644 --- a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart +++ b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart @@ -34,27 +34,27 @@ _Result _$ResultFromJson(Map json) => _Result( ? null : Product.fromJson(json['product'] as Map), key: json['key'] as String?, - create_date: json['create_date'] as String?, - modify_date: json['modify_date'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, trash: json['trash'] as bool?, - kill_house_name: json['kill_house_name'] as String?, - kill_house_mobile: json['kill_house_mobile'] as String?, - kill_house_vet_name: json['kill_house_vet_name'] as String?, - kill_house_vet_mobile: json['kill_house_vet_mobile'] as String?, + killHouseName: json['kill_house_name'] as String?, + killHouseMobile: json['kill_house_mobile'] as String?, + killHouseVetName: json['kill_house_vet_name'] as String?, + killHouseVetMobile: json['kill_house_vet_mobile'] as String?, province: json['province'] as String?, city: json['city'] as String?, - driver_name: json['driver_name'] as String?, - driver_mobile: json['driver_mobile'] as String?, + driverName: json['driver_name'] as String?, + driverMobile: json['driver_mobile'] as String?, car: json['car'], pelak: json['pelak'] as String?, - number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), - weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), - bar_image: json['bar_image'] as String?, + numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), + weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(), + barImage: json['bar_image'] as String?, date: json['date'] as String?, - temporary_trash: json['temporary_trash'] as bool?, - temporary_deleted: json['temporary_deleted'] as bool?, - created_by: json['created_by'] as String?, - modified_by: json['modified_by'] as String?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, ); Map _$ResultToJson(_Result instance) => { @@ -63,138 +63,138 @@ Map _$ResultToJson(_Result instance) => { 'guild': instance.guild, 'product': instance.product, 'key': instance.key, - 'create_date': instance.create_date, - 'modify_date': instance.modify_date, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, 'trash': instance.trash, - 'kill_house_name': instance.kill_house_name, - 'kill_house_mobile': instance.kill_house_mobile, - 'kill_house_vet_name': instance.kill_house_vet_name, - 'kill_house_vet_mobile': instance.kill_house_vet_mobile, + 'kill_house_name': instance.killHouseName, + 'kill_house_mobile': instance.killHouseMobile, + 'kill_house_vet_name': instance.killHouseVetName, + 'kill_house_vet_mobile': instance.killHouseVetMobile, 'province': instance.province, 'city': instance.city, - 'driver_name': instance.driver_name, - 'driver_mobile': instance.driver_mobile, + 'driver_name': instance.driverName, + 'driver_mobile': instance.driverMobile, 'car': instance.car, 'pelak': instance.pelak, - 'number_of_carcasses': instance.number_of_carcasses, - 'weight_of_carcasses': instance.weight_of_carcasses, - 'bar_image': instance.bar_image, + 'number_of_carcasses': instance.numberOfCarcasses, + 'weight_of_carcasses': instance.weightOfCarcasses, + 'bar_image': instance.barImage, 'date': instance.date, - 'temporary_trash': instance.temporary_trash, - 'temporary_deleted': instance.temporary_deleted, - 'created_by': instance.created_by, - 'modified_by': instance.modified_by, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, }; _Steward _$StewardFromJson(Map json) => _Steward( user: json['user'] == null ? null : User.fromJson(json['user'] as Map), - guilds_name: json['guilds_name'] as String?, + guildsName: json['guilds_name'] as String?, steward: json['steward'] as bool?, - allocation_limit: json['allocation_limit'], + allocationLimit: (json['allocation_limit'] as num?)?.toInt(), address: json['address'] == null ? null : Address.fromJson(json['address'] as Map), - license_number: json['license_number'] as String?, - type_activity: json['type_activity'] as String?, - area_activity: json['area_activity'] as String?, - guilds_id: json['guilds_id'] as String?, - create_date: json['create_date'] as String?, + licenseNumber: json['license_number'] as String?, + typeActivity: json['type_activity'] as String?, + areaActivity: json['area_activity'] as String?, + guildsId: json['guilds_id'] as String?, + createDate: json['create_date'] as String?, ); Map _$StewardToJson(_Steward instance) => { 'user': instance.user, - 'guilds_name': instance.guilds_name, + 'guilds_name': instance.guildsName, 'steward': instance.steward, - 'allocation_limit': instance.allocation_limit, + 'allocation_limit': instance.allocationLimit, 'address': instance.address, - 'license_number': instance.license_number, - 'type_activity': instance.type_activity, - 'area_activity': instance.area_activity, - 'guilds_id': instance.guilds_id, - 'create_date': instance.create_date, + 'license_number': instance.licenseNumber, + 'type_activity': instance.typeActivity, + 'area_activity': instance.areaActivity, + 'guilds_id': instance.guildsId, + 'create_date': instance.createDate, }; _User _$UserFromJson(Map json) => _User( fullname: json['fullname'] as String?, - first_name: json['first_name'] as String?, - last_name: json['last_name'] as String?, - base_order: (json['base_order'] as num?)?.toInt(), + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), mobile: json['mobile'] as String?, - national_id: json['national_id'] as String?, - national_code: json['national_code'] as String?, + nationalId: json['national_id'] as String?, + nationalCode: json['national_code'] as String?, key: json['key'] as String?, city: json['city'] == null ? null : City.fromJson(json['city'] as Map), - unit_name: json['unit_name'] as String?, - unit_national_id: json['unit_national_id'] as String?, - unit_registration_number: json['unit_registration_number'] as String?, - unit_economical_number: json['unit_economical_number'] as String?, - unit_province: json['unit_province'] as String?, - unit_city: json['unit_city'] as String?, - unit_postal_code: json['unit_postal_code'] as String?, - unit_address: json['unit_address'] as String?, + unitName: json['unit_name'] as String?, + unitNationalId: json['unit_national_id'] as String?, + unitRegistrationNumber: json['unit_registration_number'] as String?, + unitEconomicalNumber: json['unit_economical_number'] as String?, + unitProvince: json['unit_province'] as String?, + unitCity: json['unit_city'] as String?, + unitPostalCode: json['unit_postal_code'] as String?, + unitAddress: json['unit_address'] as String?, ); Map _$UserToJson(_User instance) => { 'fullname': instance.fullname, - 'first_name': instance.first_name, - 'last_name': instance.last_name, - 'base_order': instance.base_order, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'base_order': instance.baseOrder, 'mobile': instance.mobile, - 'national_id': instance.national_id, - 'national_code': instance.national_code, + 'national_id': instance.nationalId, + 'national_code': instance.nationalCode, 'key': instance.key, 'city': instance.city, - 'unit_name': instance.unit_name, - 'unit_national_id': instance.unit_national_id, - 'unit_registration_number': instance.unit_registration_number, - 'unit_economical_number': instance.unit_economical_number, - 'unit_province': instance.unit_province, - 'unit_city': instance.unit_city, - 'unit_postal_code': instance.unit_postal_code, - 'unit_address': instance.unit_address, + 'unit_name': instance.unitName, + 'unit_national_id': instance.unitNationalId, + 'unit_registration_number': instance.unitRegistrationNumber, + 'unit_economical_number': instance.unitEconomicalNumber, + 'unit_province': instance.unitProvince, + 'unit_city': instance.unitCity, + 'unit_postal_code': instance.unitPostalCode, + 'unit_address': instance.unitAddress, }; _City _$CityFromJson(Map json) => _City( id: (json['id'] as num?)?.toInt(), key: json['key'] as String?, - create_date: json['create_date'] as String?, - modify_date: json['modify_date'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, trash: json['trash'] as bool?, - province_id_foreign_key: (json['province_id_foreign_key'] as num?)?.toInt(), - city_id_key: (json['city_id_key'] as num?)?.toInt(), + provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(), + cityIdKey: (json['city_id_key'] as num?)?.toInt(), name: json['name'] as String?, - product_price: (json['product_price'] as num?)?.toInt(), - province_center: json['province_center'] as bool?, - city_number: (json['city_number'] as num?)?.toInt(), - city_name: json['city_name'] as String?, - province_number: (json['province_number'] as num?)?.toInt(), - province_name: json['province_name'] as String?, - created_by: json['created_by'] as String?, - modified_by: json['modified_by'] as String?, + productPrice: (json['product_price'] as num?)?.toDouble(), + provinceCenter: json['province_center'] as bool?, + cityNumber: (json['city_number'] as num?)?.toInt(), + cityName: json['city_name'] as String?, + provinceNumber: (json['province_number'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, province: (json['province'] as num?)?.toInt(), ); Map _$CityToJson(_City instance) => { 'id': instance.id, 'key': instance.key, - 'create_date': instance.create_date, - 'modify_date': instance.modify_date, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, 'trash': instance.trash, - 'province_id_foreign_key': instance.province_id_foreign_key, - 'city_id_key': instance.city_id_key, + 'province_id_foreign_key': instance.provinceIdForeignKey, + 'city_id_key': instance.cityIdKey, 'name': instance.name, - 'product_price': instance.product_price, - 'province_center': instance.province_center, - 'city_number': instance.city_number, - 'city_name': instance.city_name, - 'province_number': instance.province_number, - 'province_name': instance.province_name, - 'created_by': instance.created_by, - 'modified_by': instance.modified_by, + 'product_price': instance.productPrice, + 'province_center': instance.provinceCenter, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, 'province': instance.province, }; @@ -206,14 +206,14 @@ _Address _$AddressFromJson(Map json) => _Address( ? null : City.fromJson(json['city'] as Map), address: json['address'] as String?, - postal_code: json['postal_code'] as String?, + postalCode: json['postal_code'] as String?, ); Map _$AddressToJson(_Address instance) => { 'province': instance.province, 'city': instance.city, 'address': instance.address, - 'postal_code': instance.postal_code, + 'postal_code': instance.postalCode, }; _Province _$ProvinceFromJson(Map json) => diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province/logic.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province/logic.dart index aaadad3..4e6359d 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province/logic.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province/logic.dart @@ -1,8 +1,20 @@ +import 'package:rasadyar_chicken/presentation/pages/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class SalesOutOfProvinceLogic extends GetxController { RxBool isExpanded = false.obs; RxList isExpandedList = [].obs; + + RootLogic get rootLogic => Get.find(); + + + + + + + + + @override void onReady() { // TODO: implement onReady diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart index b44b6f9..b5cc18b 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart @@ -65,231 +65,221 @@ class SalesOutOfProvincePage extends GetView { ListView saleListWidget() { return ListView.separated( - shrinkWrap: true, - padding: EdgeInsets.fromLTRB(8, 8, 18, 80), - itemBuilder: (context, index) { - return ObxValue( - (data) => saleListItem(data, index), - controller.isExpandedList, - ); - }, - separatorBuilder: (context, index) => SizedBox(height: 8), - itemCount: 5, + shrinkWrap: true, + physics: BouncingScrollPhysics(), + padding: EdgeInsets.fromLTRB(8, 8, 18, 80), + itemBuilder: (context, index) { + return ObxValue( + (data) => saleListItem(data, index), + controller.isExpandedList, ); + }, + separatorBuilder: (context, index) => SizedBox(height: 8), + itemCount: 5, + ); + } + + Widget emptyWidget() { + return Center( + child: Text( + 'داده ای دریافت نشد!', + style: AppFonts.yekan16.copyWith(color: AppColor.darkGreyDarkHover), + ), + ); } GestureDetector saleListItem(RxList data, int index) { return GestureDetector( - onTap: () { - if (data.contains(index)) { - controller.isExpandedList.remove(index); - } else { - controller.isExpandedList.add(index); - } - }, - child: AnimatedContainer( - duration: Duration(milliseconds: 400), + onTap: () { + if (data.contains(index)) { + controller.isExpandedList.remove(index); + } else { + controller.isExpandedList.add(index); + } + }, + child: AnimatedContainer( + duration: Duration(milliseconds: 400), + alignment: Alignment.center, + height: data.contains(index) ? 210 : 56, + child: Stack( + clipBehavior: Clip.none, + alignment: Alignment.centerRight, + children: [ + AnimatedContainer( + width: Get.width - 30, + duration: Duration(milliseconds: 300), + height: data.contains(index) ? 210 : 56, + alignment: Alignment.center, + decoration: BoxDecoration( + color: Colors.transparent, + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 0.5, color: AppColor.darkGreyNormal), + ), + child: AnimatedCrossFade( alignment: Alignment.center, - height: data.contains(index) ? 210 : 56, - child: Stack( - clipBehavior: Clip.none, - alignment: Alignment.centerRight, + firstChild: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - AnimatedContainer( - width: Get.width - 30, - duration: Duration(milliseconds: 300), - height: data.contains(index) ? 210 : 56, - alignment: Alignment.center, - decoration: BoxDecoration( - color: Colors.transparent, - borderRadius: BorderRadius.circular(8), - border: Border.all( - width: 0.5, - color: AppColor.darkGreyNormal, - ), - ), - child: AnimatedCrossFade( - alignment: Alignment.center, - firstChild: Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Text( - '1403/5/5', - textAlign: TextAlign.center, - style: AppFonts.yekan14.copyWith( - color: AppColor.bgDark, - ), - ), - Text( - 'افلاک', - textAlign: TextAlign.center, - style: AppFonts.yekan14.copyWith( - color: AppColor.blueNormal, - ), - ), - Text( - 'kg 200 مرغ گرم ', - textAlign: TextAlign.center, - style: AppFonts.yekan14.copyWith( - color: AppColor.blueNormal, - ), - ), - - Text( - 'لرستان-خرم آباد', - textAlign: TextAlign.center, - style: AppFonts.yekan14.copyWith( - color: AppColor.bgDark, - ), - ), - - Icon(CupertinoIcons.chevron_down, size: 12), - ], - ), - secondChild: Container( - padding: EdgeInsets.fromLTRB(8, 12, 14, 12), - - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(8), - ), - child: Column( - spacing: 8, - children: [ - Row( - mainAxisAlignment: - MainAxisAlignment.spaceBetween, - children: [ - Assets.vec.editSvg.svg( - width: 20, - height: 20, - colorFilter: ColorFilter.mode( - AppColor.blueNormal, - BlendMode.srcIn, - ), - ), - - Text( - 'لرستان - خرم آباد', - textAlign: TextAlign.center, - style: AppFonts.yekan16.copyWith( - color: AppColor.greenDark, - ), - ), - - Assets.vec.trashSvg.svg( - width: 20, - height: 20, - colorFilter: ColorFilter.mode( - AppColor.error, - BlendMode.srcIn, - ), - ), - ], - ), - Container( - height: 32, - padding: EdgeInsets.symmetric( - horizontal: 4, - ), - decoration: ShapeDecoration( - color: AppColor.blueLight, - shape: RoundedRectangleBorder( - side: BorderSide( - width: 1, - color: AppColor.blueLightHover, - ), - borderRadius: BorderRadius.circular(8), - ), - ), - child: buildRow( - 'تاریخ', - '07:15:00 - 1402/07/01', - ), - ), - - buildRow( - 'مشخصات فروشنده', - 'افلاک - 09203659874', - ), - buildRow('وزن خریداری شده', '200 کیلوگرم'), - buildRow('لاشه خریداری شده', '200 عدد'), - Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - Icon(CupertinoIcons.chevron_up, size: 12), - ], - ), - ], - ), - ), - crossFadeState: data.contains(index) - ? CrossFadeState.showSecond - : CrossFadeState.showFirst, - duration: Duration(milliseconds: 300), + Text( + '1403/5/5', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + Text( + 'افلاک', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.blueNormal, ), ), - Positioned( - right: -12, - child: Container( - width: index < 999 ? 24 : null, - height: index < 999 ? 24 : null, - padding: EdgeInsets.all(2), - decoration: BoxDecoration( - color: AppColor.greenLightHover, - borderRadius: BorderRadius.circular(4), - border: Border.all( - width: 0.50, - color: AppColor.greenDarkActive, - ), - ), - alignment: Alignment.center, - child: Text( - (index + 1).toString(), - style: AppFonts.yekan12.copyWith( - color: Colors.black, - ), - ), + Text( + 'kg 200 مرغ گرم ', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.blueNormal, ), ), + + Text( + 'لرستان-خرم آباد', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + + Icon(CupertinoIcons.chevron_down, size: 12), ], ), + secondChild: Container( + padding: EdgeInsets.fromLTRB(8, 12, 14, 12), + + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + ), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Assets.vec.editSvg.svg( + width: 20, + height: 20, + colorFilter: ColorFilter.mode( + AppColor.blueNormal, + BlendMode.srcIn, + ), + ), + + Text( + 'لرستان - خرم آباد', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith( + color: AppColor.greenDark, + ), + ), + + Assets.vec.trashSvg.svg( + width: 20, + height: 20, + colorFilter: ColorFilter.mode( + AppColor.error, + BlendMode.srcIn, + ), + ), + ], + ), + Container( + height: 32, + padding: EdgeInsets.symmetric(horizontal: 4), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide( + width: 1, + color: AppColor.blueLightHover, + ), + borderRadius: BorderRadius.circular(8), + ), + ), + child: buildRow('تاریخ', '07:15:00 - 1402/07/01'), + ), + + buildRow('مشخصات فروشنده', 'افلاک - 09203659874'), + buildRow('وزن خریداری شده', '200 کیلوگرم'), + buildRow('لاشه خریداری شده', '200 عدد'), + Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [Icon(CupertinoIcons.chevron_up, size: 12)], + ), + ], + ), + ), + crossFadeState: data.contains(index) + ? CrossFadeState.showSecond + : CrossFadeState.showFirst, + duration: Duration(milliseconds: 300), ), - ); + ), + Positioned( + right: -12, + child: Container( + width: index < 999 ? 24 : null, + height: index < 999 ? 24 : null, + padding: EdgeInsets.all(2), + decoration: BoxDecoration( + color: AppColor.greenLightHover, + borderRadius: BorderRadius.circular(4), + border: Border.all( + width: 0.50, + color: AppColor.greenDarkActive, + ), + ), + alignment: Alignment.center, + child: Text( + (index + 1).toString(), + style: AppFonts.yekan12.copyWith(color: Colors.black), + ), + ), + ), + ], + ), + ), + ); } Row routePageWidget() { return Row( - children: [ - SizedBox(width: 8), - RichText( - text: TextSpan( - style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), - children: [ - WidgetSpan( - child: Row( - children: [ - Assets.vec.cubeSearchSvg.svg( - width: 24, - height: 24, - colorFilter: const ColorFilter.mode( - AppColor.blueNormal, - BlendMode.srcIn, - ), - ), - SizedBox(width: 6,) - ], + children: [ + SizedBox(width: 8), + RichText( + text: TextSpan( + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + children: [ + WidgetSpan( + child: Row( + children: [ + Assets.vec.cubeSearchSvg.svg( + width: 24, + height: 24, + colorFilter: const ColorFilter.mode( + AppColor.blueNormal, + BlendMode.srcIn, + ), ), - ), - - TextSpan(text: 'خارج استان'), - TextSpan(text: '/'), - TextSpan(text: 'خرید'), - ], + SizedBox(width: 6), + ], + ), ), - ), - ], - ); + + TextSpan(text: 'خارج استان'), + TextSpan(text: '/'), + TextSpan(text: 'خرید'), + ], + ), + ), + ], + ); } Widget buildRow(String title, String value) {