copyWith method

ProjectConfig copyWith({
  1. String? deviceId,
  2. String? userIdentifier,
  3. String? username,
  4. String? password,
})

Creates a copy of the current ProjectConfig instance with optional changes.

Implementation

ProjectConfig copyWith({
  String? deviceId,
  String? userIdentifier,
  String? username,
  String? password,
}) {
  return ProjectConfig(
    deviceId: deviceId ?? this.deviceId,
    userIdentifier: userIdentifier ?? this.userIdentifier,
    username: username ?? this.username,
    password: password ?? this.password,
  );
}