copyWith method

OauthAuthentication copyWith({
  1. String? userName,
  2. OauthToken? token,
})

Copies this OauthAuthentication with the given token

Implementation

OauthAuthentication copyWith({String? userName, OauthToken? token}) =>
    OauthAuthentication(userName ?? this.userName, token ?? this.token);