Added logic for gender

This commit is contained in:
2023-12-25 15:35:13 +03:00
parent f0ee09dfc8
commit bf5406fec8
6 changed files with 93 additions and 51 deletions

View File

@@ -1,16 +1,20 @@
// ignore_for_file: must_be_immutable
import 'package:equatable/equatable.dart';
import 'package:eatvio_app/data/models/userRegistrationModel/user_registration_model.dart';
/// This class defines the variables used in the [gender_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class GenderModel extends Equatable {
GenderModel() {}
UserRegistrationSheet userRegistrationSheet;
GenderModel({required this.userRegistrationSheet});
GenderModel copyWith() {
return GenderModel();
GenderModel copyWith({UserRegistrationSheet? userRegistrationSheet, gender}) {
return GenderModel(
userRegistrationSheet:
userRegistrationSheet ?? this.userRegistrationSheet);
}
@override
List<Object?> get props => [];
List<Object?> get props => [userRegistrationSheet];
}