forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -12,8 +12,7 @@ part of 'credentials_model.dart';
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
||||
);
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
CredentialsModel _$CredentialsModelFromJson(Map<String, dynamic> json) {
|
||||
return _CredentialsModel.fromJson(json);
|
||||
@@ -37,9 +36,8 @@ mixin _$CredentialsModel {
|
||||
/// @nodoc
|
||||
abstract class $CredentialsModelCopyWith<$Res> {
|
||||
factory $CredentialsModelCopyWith(
|
||||
CredentialsModel value,
|
||||
$Res Function(CredentialsModel) then,
|
||||
) = _$CredentialsModelCopyWithImpl<$Res, CredentialsModel>;
|
||||
CredentialsModel value, $Res Function(CredentialsModel) then) =
|
||||
_$CredentialsModelCopyWithImpl<$Res, CredentialsModel>;
|
||||
@useResult
|
||||
$Res call({String email, String password});
|
||||
}
|
||||
@@ -58,32 +56,29 @@ class _$CredentialsModelCopyWithImpl<$Res, $Val extends CredentialsModel>
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? email = null, Object? password = null}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
email:
|
||||
null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password:
|
||||
null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
$Res call({
|
||||
Object? email = null,
|
||||
Object? password = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
email: null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password: null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$CredentialsModelImplCopyWith<$Res>
|
||||
implements $CredentialsModelCopyWith<$Res> {
|
||||
factory _$$CredentialsModelImplCopyWith(
|
||||
_$CredentialsModelImpl value,
|
||||
$Res Function(_$CredentialsModelImpl) then,
|
||||
) = __$$CredentialsModelImplCopyWithImpl<$Res>;
|
||||
factory _$$CredentialsModelImplCopyWith(_$CredentialsModelImpl value,
|
||||
$Res Function(_$CredentialsModelImpl) then) =
|
||||
__$$CredentialsModelImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String email, String password});
|
||||
@@ -93,30 +88,28 @@ abstract class _$$CredentialsModelImplCopyWith<$Res>
|
||||
class __$$CredentialsModelImplCopyWithImpl<$Res>
|
||||
extends _$CredentialsModelCopyWithImpl<$Res, _$CredentialsModelImpl>
|
||||
implements _$$CredentialsModelImplCopyWith<$Res> {
|
||||
__$$CredentialsModelImplCopyWithImpl(
|
||||
_$CredentialsModelImpl _value,
|
||||
$Res Function(_$CredentialsModelImpl) _then,
|
||||
) : super(_value, _then);
|
||||
__$$CredentialsModelImplCopyWithImpl(_$CredentialsModelImpl _value,
|
||||
$Res Function(_$CredentialsModelImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of CredentialsModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? email = null, Object? password = null}) {
|
||||
return _then(
|
||||
_$CredentialsModelImpl(
|
||||
email:
|
||||
null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password:
|
||||
null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
),
|
||||
);
|
||||
$Res call({
|
||||
Object? email = null,
|
||||
Object? password = null,
|
||||
}) {
|
||||
return _then(_$CredentialsModelImpl(
|
||||
email: null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
password: null == password
|
||||
? _value.password
|
||||
: password // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,21 +152,20 @@ class _$CredentialsModelImpl implements _CredentialsModel {
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$CredentialsModelImplCopyWith<_$CredentialsModelImpl> get copyWith =>
|
||||
__$$CredentialsModelImplCopyWithImpl<_$CredentialsModelImpl>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$CredentialsModelImplToJson(this);
|
||||
return _$$CredentialsModelImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _CredentialsModel implements CredentialsModel {
|
||||
const factory _CredentialsModel({
|
||||
required final String email,
|
||||
required final String password,
|
||||
}) = _$CredentialsModelImpl;
|
||||
const factory _CredentialsModel(
|
||||
{required final String email,
|
||||
required final String password}) = _$CredentialsModelImpl;
|
||||
|
||||
factory _CredentialsModel.fromJson(Map<String, dynamic> json) =
|
||||
_$CredentialsModelImpl.fromJson;
|
||||
|
||||
@@ -7,12 +7,15 @@ part of 'credentials_model.dart';
|
||||
// **************************************************************************
|
||||
|
||||
_$CredentialsModelImpl _$$CredentialsModelImplFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$CredentialsModelImpl(
|
||||
email: json['email'] as String,
|
||||
password: json['password'] as String,
|
||||
);
|
||||
Map<String, dynamic> json) =>
|
||||
_$CredentialsModelImpl(
|
||||
email: json['email'] as String,
|
||||
password: json['password'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$CredentialsModelImplToJson(
|
||||
_$CredentialsModelImpl instance,
|
||||
) => <String, dynamic>{'email': instance.email, 'password': instance.password};
|
||||
_$CredentialsModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'email': instance.email,
|
||||
'password': instance.password,
|
||||
};
|
||||
|
||||
@@ -12,8 +12,7 @@ part of 'token_model.dart';
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
|
||||
);
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
TokenModel _$TokenModelFromJson(Map<String, dynamic> json) {
|
||||
return _TokenModel.fromJson(json);
|
||||
@@ -36,9 +35,8 @@ mixin _$TokenModel {
|
||||
/// @nodoc
|
||||
abstract class $TokenModelCopyWith<$Res> {
|
||||
factory $TokenModelCopyWith(
|
||||
TokenModel value,
|
||||
$Res Function(TokenModel) then,
|
||||
) = _$TokenModelCopyWithImpl<$Res, TokenModel>;
|
||||
TokenModel value, $Res Function(TokenModel) then) =
|
||||
_$TokenModelCopyWithImpl<$Res, TokenModel>;
|
||||
@useResult
|
||||
$Res call({String token});
|
||||
}
|
||||
@@ -57,17 +55,15 @@ class _$TokenModelCopyWithImpl<$Res, $Val extends TokenModel>
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? token = null}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
token:
|
||||
null == token
|
||||
? _value.token
|
||||
: token // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
$Res call({
|
||||
Object? token = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
token: null == token
|
||||
? _value.token
|
||||
: token // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,9 +71,8 @@ class _$TokenModelCopyWithImpl<$Res, $Val extends TokenModel>
|
||||
abstract class _$$TokenModelImplCopyWith<$Res>
|
||||
implements $TokenModelCopyWith<$Res> {
|
||||
factory _$$TokenModelImplCopyWith(
|
||||
_$TokenModelImpl value,
|
||||
$Res Function(_$TokenModelImpl) then,
|
||||
) = __$$TokenModelImplCopyWithImpl<$Res>;
|
||||
_$TokenModelImpl value, $Res Function(_$TokenModelImpl) then) =
|
||||
__$$TokenModelImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String token});
|
||||
@@ -88,24 +83,22 @@ class __$$TokenModelImplCopyWithImpl<$Res>
|
||||
extends _$TokenModelCopyWithImpl<$Res, _$TokenModelImpl>
|
||||
implements _$$TokenModelImplCopyWith<$Res> {
|
||||
__$$TokenModelImplCopyWithImpl(
|
||||
_$TokenModelImpl _value,
|
||||
$Res Function(_$TokenModelImpl) _then,
|
||||
) : super(_value, _then);
|
||||
_$TokenModelImpl _value, $Res Function(_$TokenModelImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of TokenModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? token = null}) {
|
||||
return _then(
|
||||
_$TokenModelImpl(
|
||||
token:
|
||||
null == token
|
||||
? _value.token
|
||||
: token // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
),
|
||||
);
|
||||
$Res call({
|
||||
Object? token = null,
|
||||
}) {
|
||||
return _then(_$TokenModelImpl(
|
||||
token: null == token
|
||||
? _value.token
|
||||
: token // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +140,9 @@ class _$TokenModelImpl implements _TokenModel {
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$TokenModelImplToJson(this);
|
||||
return _$$TokenModelImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,11 @@ part of 'token_model.dart';
|
||||
// **************************************************************************
|
||||
|
||||
_$TokenModelImpl _$$TokenModelImplFromJson(Map<String, dynamic> json) =>
|
||||
_$TokenModelImpl(token: json['token'] as String);
|
||||
_$TokenModelImpl(
|
||||
token: json['token'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$TokenModelImplToJson(_$TokenModelImpl instance) =>
|
||||
<String, dynamic>{'token': instance.token};
|
||||
<String, dynamic>{
|
||||
'token': instance.token,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user