Client constructor
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,
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;
}