Mechanic constructor

Mechanic({
  1. required String? name,
  2. required String? email,
  3. double? rating,
  4. String? id,
  5. DateTime? birthDay,
  6. DateTime? createdDate,
  7. AccountState? userState,
  8. Gender? gender,
  9. Type? type,
  10. String? avatar,
  11. CustomLocation? loc,
  12. String? phoneNumber,
  13. String? address,
  14. bool? isAccepted,
  15. bool? isCenter,
  16. String? nationalID,
})

Implementation

Mechanic({
  required String? name,
  required String? email,
  this.rating,
  String? id,
  DateTime? birthDay,
  DateTime? createdDate,
  AccountState? userState,
  Gender? gender,
  Type? type,
  String? avatar,
  CustomLocation? loc,
  String? phoneNumber,
  String? address,
  this.isAccepted,
  this.isCenter,
  this.nationalID,
}) : super(
          name: name,
          email: email,
          id: id,
          birthDay: birthDay,
          createdDate: createdDate,
          userState: userState,
          gender: gender,
          type: type,
          avatar: avatar,
          loc: loc,
          phoneNumber: phoneNumber,
          address: address);