copyWith method

SentryUser copyWith({
  1. String? id,
  2. String? username,
  3. String? email,
  4. String? ipAddress,
  5. String? segment,
  6. @Deprecated('Will be removed in v8. Use [data] instead') Map<String, dynamic>? extras,
  7. String? name,
  8. SentryGeo? geo,
  9. Map<String, dynamic>? data,
})

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,
  );
}