Client constructor

Client({
  1. String? name,
  2. String? email,
  3. String? id,
  4. DateTime? birthDay,
  5. DateTime? createdDate,
  6. AccountState? userState,
  7. Gender? gender,
  8. Type? type,
  9. String? avatar,
  10. CustomLocation? loc,
  11. String? phoneNumber,
  12. List<Car>? cars,
  13. SubscriptionTypes? subscription,
  14. String? address,
})

Implementation

Client({
  String? name,
  String? email,
  String? id,
  DateTime? birthDay,
  DateTime? createdDate,
  AccountState? userState,
  Gender? gender,
  Type? type,
  String? avatar,
  CustomLocation? loc,
  String? phoneNumber,
  List<Car>? cars,
  SubscriptionTypes? subscription,
  String? address,
}) : 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) {
  _subscription = subscription ?? _subscription;
  _cars = cars ?? _cars;
}