copy method

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

Returns a copy of this APICredential.

Implementation

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