copyWith method
ProfileModel
copyWith({
- int? id,
- String? firstName,
- String? lastName,
- String? middleName,
- String? phone,
- String? profilePhoto,
- num? balance,
- num? unseenNotificationCount,
- num? averageRating,
- num? orderCount,
- num? medalLevel,
- num? activity,
- bool? myId,
- int? equipmentId,
- bool? selfEmploymentStatusSet,
- bool? passedTest,
- bool? commissionerIsSet,
- bool? isWorking,
- bool? visitedOffice,
- bool? drivingLicenseUploaded,
- bool? drivingLicenseApproved,
- String? email,
- String? lockerSyncValue,
- List<
int> ? seenHints, - StatisticModel? stats,
- bool? isBlocked,
- DateTime? blockedTill,
Implementation
ProfileModel copyWith(
{int? id,
String? firstName,
String? lastName,
String? middleName,
String? phone,
String? profilePhoto,
num? balance,
num? unseenNotificationCount,
num? averageRating,
num? orderCount,
num? medalLevel,
num? activity,
bool? myId,
int? equipmentId,
bool? selfEmploymentStatusSet,
bool? passedTest,
bool? commissionerIsSet,
bool? isWorking,
bool? visitedOffice,
bool? drivingLicenseUploaded,
bool? drivingLicenseApproved,
String? email,
String? lockerSyncValue,
List<int>? seenHints,
StatisticModel? stats,
bool? isBlocked,
DateTime? blockedTill}) =>
ProfileModel(
id: id ?? this.id,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
middleName: middleName ?? this.middleName,
phone: phone ?? this.phone,
profilePhoto: profilePhoto ?? this.profilePhoto,
balance: balance ?? this.balance,
commissionerIsSet: commissionerIsSet ?? this.commissionerIsSet,
myId: myId ?? this.myId,
equipmentId: equipmentId ?? this.equipmentId,
selfEmploymentStatusSet:
selfEmploymentStatusSet ?? this.selfEmploymentStatusSet,
isWorking: isWorking ?? this.isWorking,
passedTest: passedTest ?? this.passedTest,
visitedOffice: visitedOffice ?? this.visitedOffice,
drivingLicenseUploaded:
drivingLicenseUploaded ?? this.drivingLicenseUploaded,
drivingLicenseApproved:
drivingLicenseApproved ?? this.drivingLicenseApproved,
email: email ?? this.email,
seenHints: seenHints ?? this.seenHints,
stats: stats ?? this.stats,
lockerSyncValue: lockerSyncValue ?? this.lockerSyncValue,
isBlocked: isBlocked ?? this.isBlocked,
blockedTill: blockedTill ?? this.blockedTill,
unseenNotificationCount:
unseenNotificationCount ?? this.unseenNotificationCount,
averageRating: averageRating ?? this.averageRating,
orderCount: orderCount ?? this.orderCount,
medalLevel: medalLevel ?? this.medalLevel,
activity: activity ?? this.activity,
);