copyWith method

  1. @override
AuthenticationDataModel copyWith({
  1. String? id,
  2. String? token,
  3. User? user,
  4. String? refreshToken,
  5. AuthDeviceInfo? deviceInfo,
})
override

Implementation

@override
AuthenticationDataModel copyWith({
  String? id,
  String? token,
  User? user,
  String? refreshToken,
  AuthDeviceInfo? deviceInfo,
}) {
  return AuthenticationDataModel(
    id: id ?? this.id,
    token: token ?? this.token,
    user: user ?? this.user,
    refreshToken: refreshToken ?? this.refreshToken,
    deviceInfo: deviceInfo ?? this.deviceInfo,
  );
}