copyWith method

ConnectedWebsite copyWith({
  1. int? id,
  2. String? domainName,
  3. int? botUserId,
  4. String? browser,
  5. String? platform,
  6. int? logInDate,
  7. int? lastActiveDate,
  8. String? ipAddress,
  9. String? location,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ConnectedWebsite copyWith({
  int? id,
  String? domainName,
  int? botUserId,
  String? browser,
  String? platform,
  int? logInDate,
  int? lastActiveDate,
  String? ipAddress,
  String? location,
}) =>
    ConnectedWebsite(
      id: id ?? this.id,
      domainName: domainName ?? this.domainName,
      botUserId: botUserId ?? this.botUserId,
      browser: browser ?? this.browser,
      platform: platform ?? this.platform,
      logInDate: logInDate ?? this.logInDate,
      lastActiveDate: lastActiveDate ?? this.lastActiveDate,
      ipAddress: ipAddress ?? this.ipAddress,
      location: location ?? this.location,
    );