copyWith method

UserPlanPayload copyWith({
  1. int? planId,
  2. double? planAmount,
  3. String? nin,
})

Implementation

UserPlanPayload copyWith({int? planId, double? planAmount, String? nin}) {
  return UserPlanPayload(
    planId: planId ?? this.planId,
    planAmount: planAmount ?? this.planAmount,
    nin: nin ?? this.nin,
  );
}