forked from eatvio/eatvio_app
create diet screen
This commit is contained in:
@@ -1259,12 +1259,12 @@ DietType _$DietTypeFromJson(Map<String, dynamic> json) {
|
||||
|
||||
/// @nodoc
|
||||
mixin _$DietType {
|
||||
@JsonKey(name: "alko")
|
||||
bool? get alko => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "light")
|
||||
bool? get light => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "veg")
|
||||
bool? get veg => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "corb")
|
||||
bool? get corb => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "carb")
|
||||
bool? get carb => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "meat")
|
||||
bool? get meat => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -1284,9 +1284,9 @@ abstract class $DietTypeCopyWith<$Res> {
|
||||
_$DietTypeCopyWithImpl<$Res, DietType>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "alko") bool? alko,
|
||||
{@JsonKey(name: "light") bool? light,
|
||||
@JsonKey(name: "veg") bool? veg,
|
||||
@JsonKey(name: "corb") bool? corb,
|
||||
@JsonKey(name: "carb") bool? carb,
|
||||
@JsonKey(name: "meat") bool? meat});
|
||||
}
|
||||
|
||||
@@ -1305,23 +1305,23 @@ class _$DietTypeCopyWithImpl<$Res, $Val extends DietType>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? alko = freezed,
|
||||
Object? light = freezed,
|
||||
Object? veg = freezed,
|
||||
Object? corb = freezed,
|
||||
Object? carb = freezed,
|
||||
Object? meat = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
alko: freezed == alko
|
||||
? _value.alko
|
||||
: alko // ignore: cast_nullable_to_non_nullable
|
||||
light: freezed == light
|
||||
? _value.light
|
||||
: light // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
veg: freezed == veg
|
||||
? _value.veg
|
||||
: veg // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
corb: freezed == corb
|
||||
? _value.corb
|
||||
: corb // ignore: cast_nullable_to_non_nullable
|
||||
carb: freezed == carb
|
||||
? _value.carb
|
||||
: carb // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
meat: freezed == meat
|
||||
? _value.meat
|
||||
@@ -1340,9 +1340,9 @@ abstract class _$$DietTypeImplCopyWith<$Res>
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "alko") bool? alko,
|
||||
{@JsonKey(name: "light") bool? light,
|
||||
@JsonKey(name: "veg") bool? veg,
|
||||
@JsonKey(name: "corb") bool? corb,
|
||||
@JsonKey(name: "carb") bool? carb,
|
||||
@JsonKey(name: "meat") bool? meat});
|
||||
}
|
||||
|
||||
@@ -1359,23 +1359,23 @@ class __$$DietTypeImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? alko = freezed,
|
||||
Object? light = freezed,
|
||||
Object? veg = freezed,
|
||||
Object? corb = freezed,
|
||||
Object? carb = freezed,
|
||||
Object? meat = freezed,
|
||||
}) {
|
||||
return _then(_$DietTypeImpl(
|
||||
alko: freezed == alko
|
||||
? _value.alko
|
||||
: alko // ignore: cast_nullable_to_non_nullable
|
||||
light: freezed == light
|
||||
? _value.light
|
||||
: light // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
veg: freezed == veg
|
||||
? _value.veg
|
||||
: veg // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
corb: freezed == corb
|
||||
? _value.corb
|
||||
: corb // ignore: cast_nullable_to_non_nullable
|
||||
carb: freezed == carb
|
||||
? _value.carb
|
||||
: carb // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
meat: freezed == meat
|
||||
? _value.meat
|
||||
@@ -1389,30 +1389,30 @@ class __$$DietTypeImplCopyWithImpl<$Res>
|
||||
@JsonSerializable()
|
||||
class _$DietTypeImpl implements _DietType {
|
||||
const _$DietTypeImpl(
|
||||
{@JsonKey(name: "alko") this.alko,
|
||||
{@JsonKey(name: "light") this.light,
|
||||
@JsonKey(name: "veg") this.veg,
|
||||
@JsonKey(name: "corb") this.corb,
|
||||
@JsonKey(name: "carb") this.carb,
|
||||
@JsonKey(name: "meat") this.meat});
|
||||
|
||||
factory _$DietTypeImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$DietTypeImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: "alko")
|
||||
final bool? alko;
|
||||
@JsonKey(name: "light")
|
||||
final bool? light;
|
||||
@override
|
||||
@JsonKey(name: "veg")
|
||||
final bool? veg;
|
||||
@override
|
||||
@JsonKey(name: "corb")
|
||||
final bool? corb;
|
||||
@JsonKey(name: "carb")
|
||||
final bool? carb;
|
||||
@override
|
||||
@JsonKey(name: "meat")
|
||||
final bool? meat;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DietType(alko: $alko, veg: $veg, corb: $corb, meat: $meat)';
|
||||
return 'DietType(light: $light, veg: $veg, carb: $carb, meat: $meat)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -1420,15 +1420,15 @@ class _$DietTypeImpl implements _DietType {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$DietTypeImpl &&
|
||||
(identical(other.alko, alko) || other.alko == alko) &&
|
||||
(identical(other.light, light) || other.light == light) &&
|
||||
(identical(other.veg, veg) || other.veg == veg) &&
|
||||
(identical(other.corb, corb) || other.corb == corb) &&
|
||||
(identical(other.carb, carb) || other.carb == carb) &&
|
||||
(identical(other.meat, meat) || other.meat == meat));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, alko, veg, corb, meat);
|
||||
int get hashCode => Object.hash(runtimeType, light, veg, carb, meat);
|
||||
|
||||
/// Create a copy of DietType
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1448,23 +1448,23 @@ class _$DietTypeImpl implements _DietType {
|
||||
|
||||
abstract class _DietType implements DietType {
|
||||
const factory _DietType(
|
||||
{@JsonKey(name: "alko") final bool? alko,
|
||||
{@JsonKey(name: "light") final bool? light,
|
||||
@JsonKey(name: "veg") final bool? veg,
|
||||
@JsonKey(name: "corb") final bool? corb,
|
||||
@JsonKey(name: "carb") final bool? carb,
|
||||
@JsonKey(name: "meat") final bool? meat}) = _$DietTypeImpl;
|
||||
|
||||
factory _DietType.fromJson(Map<String, dynamic> json) =
|
||||
_$DietTypeImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: "alko")
|
||||
bool? get alko;
|
||||
@JsonKey(name: "light")
|
||||
bool? get light;
|
||||
@override
|
||||
@JsonKey(name: "veg")
|
||||
bool? get veg;
|
||||
@override
|
||||
@JsonKey(name: "corb")
|
||||
bool? get corb;
|
||||
@JsonKey(name: "carb")
|
||||
bool? get carb;
|
||||
@override
|
||||
@JsonKey(name: "meat")
|
||||
bool? get meat;
|
||||
|
||||
Reference in New Issue
Block a user