copyWith method

Config copyWith({
  1. String? authToken,
  2. String? refreshToken,
  3. String? username,
  4. String? email,
})

Copy this Config object with new values

Implementation

Config copyWith({
  String? authToken,
  String? refreshToken,
  String? username,
  String? email,
}) =>
    Config(
      authToken: authToken ?? this.authToken,
      refreshToken: refreshToken ?? this.refreshToken,
      username: username ?? this.username,
      email: email ?? this.email,
    );