copyWith method
Implementation
SentryUser copyWith({
String? id,
String? username,
String? email,
String? ipAddress,
String? segment,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, dynamic>? extras,
String? name,
SentryGeo? geo,
Map<String, dynamic>? data,
}) {
return SentryUser(
id: id ?? this.id,
username: username ?? this.username,
email: email ?? this.email,
ipAddress: ipAddress ?? this.ipAddress,
// ignore: deprecated_member_use_from_same_package
segment: segment ?? this.segment,
data: data ?? this.data,
// ignore: deprecated_member_use_from_same_package
extras: extras ?? this.extras,
geo: geo ?? this.geo,
name: name ?? this.name,
unknown: unknown,
);
}