copyWith method

PlainAuthentication copyWith({
  1. String? userName,
  2. String? password,
})

Copies this authentication with the given values

Implementation

PlainAuthentication copyWith({String? userName, String? password}) =>
    PlainAuthentication(userName ?? this.userName, password ?? this.password);