forked from eatvio/eatvio_app
Passed registration sheet between language_select and credentials
This commit is contained in:
@@ -6,12 +6,17 @@ import 'package:eatvio_app/data/models/userRegistrationModel/user_registration_m
|
||||
/// This class defines the variables used in the [credentials_screen],
|
||||
/// and is typically used to hold data that is passed between different parts of the application.
|
||||
class CredentialsModel extends Equatable {
|
||||
CredentialsModel() {}
|
||||
UserRegistrationSheet userRegistrationSheet;
|
||||
|
||||
CredentialsModel copyWith() {
|
||||
return CredentialsModel();
|
||||
CredentialsModel({required this.userRegistrationSheet});
|
||||
|
||||
CredentialsModel copyWith({UserRegistrationSheet? userRegistrationSheet}) {
|
||||
return CredentialsModel(
|
||||
userRegistrationSheet:
|
||||
userRegistrationSheet ?? this.userRegistrationSheet,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
List<Object?> get props => [userRegistrationSheet];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user