copyWith method
Admin
copyWith(
{ - 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,
- String? address,
- Map<String, bool>? accessPrivilege,
})
Implementation
Admin copyWith({
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,
String? address,
Map<String, bool>? accessPrivilege,
}) =>
Admin(
name: name ?? this.name,
email: email ?? this.email,
id: id ?? this.id,
birthDay: birthDay ?? this.birthDay,
createdDate: createdDate ?? this.createdDate,
userState: userState ?? this.userState,
gender: gender ?? this.gender,
type: type ?? this.type,
avatar: avatar ?? this.avatar,
loc: loc ?? this.loc,
phoneNumber: phoneNumber ?? this.phoneNumber,
address: address ?? this.address,
accessPrivilege: accessPrivilege ?? this.accessPrivilege,
);