copyWith method

Context copyWith({
  1. String? userId,
  2. String? sessionId,
  3. String? remoteAddress,
  4. Map<String, String>? properties,
})

Implementation

Context copyWith({
  String? userId,
  String? sessionId,
  String? remoteAddress,
  Map<String, String>? properties,
}) {
  return Context(
    userId: userId ?? this.userId,
    sessionId: sessionId ?? this.sessionId,
    remoteAddress: remoteAddress ?? this.remoteAddress,
    properties: properties ?? this.properties,
  );
}