Passed registration sheet between language_select and credentials

This commit is contained in:
2023-12-21 16:50:47 +03:00
parent 05887cb39b
commit 3faae97c91
6 changed files with 43 additions and 62 deletions

View File

@@ -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];
}