copyWith method

AuthPayloadModel copyWith({
  1. String? fullName,
  2. String? email,
  3. String? facebookId,
  4. String? googleId,
  5. String? appleId,
})

Implementation

AuthPayloadModel copyWith({
  String? fullName,
  String? email,
  String? facebookId,
  String? googleId,
  String? appleId,
}) {
  return AuthPayloadModel(
    fullName: fullName ?? this.fullName,
    facebookId: facebookId ?? this.facebookId,
    googleId: googleId ?? this.googleId,
    appleId: appleId ?? this.appleId,
  );
}