copy method

APICredential copy({
  1. bool withUsernameEntity = true,
  2. bool withPassword = true,
  3. bool withToken = true,
  4. bool withRefreshToken = true,
})

Returns a copy of this APICredential.

Implementation

APICredential copy(
        {bool withUsernameEntity = true,
        bool withPassword = true,
        bool withToken = true,
        bool withRefreshToken = true}) =>
    APICredential._(
        username,
        withUsernameEntity ? usernameEntity : null,
        withPassword ? password : null,
        withToken ? token : null,
        withRefreshToken ? refreshToken : null);