copyWith method
LinkedInUserModel
copyWith({
- String? name,
- String? familyName,
- String? givenName,
- String? email,
- String? picture,
- String? sub,
- LinkedInLocale? locale,
- LinkedInAccessToken? accessToken,
Implementation
LinkedInUserModel copyWith({
String? name,
String? familyName,
String? givenName,
String? email,
String? picture,
String? sub,
LinkedInLocale? locale,
LinkedInAccessToken? accessToken,
}) {
return LinkedInUserModel(
name: name ?? this.name,
familyName: familyName ?? this.familyName,
givenName: givenName ?? this.givenName,
email: email ?? this.email,
picture: picture ?? this.picture,
sub: sub ?? this.sub,
locale: locale ?? this.locale,
accessToken: accessToken ?? this.accessToken,
);
}