copyWith method

Passkey copyWith({
  1. String? id,
  2. String? name,
  3. int? additionDate,
  4. int? lastUsageDate,
  5. int? softwareIconCustomEmojiId,
  6. dynamic extra,
  7. int? clientId,
})

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

Implementation

Passkey copyWith({
  String? id,
  String? name,
  int? additionDate,
  int? lastUsageDate,
  int? softwareIconCustomEmojiId,
  dynamic extra,
  int? clientId,
}) => Passkey(
  id: id ?? this.id,
  name: name ?? this.name,
  additionDate: additionDate ?? this.additionDate,
  lastUsageDate: lastUsageDate ?? this.lastUsageDate,
  softwareIconCustomEmojiId:
      softwareIconCustomEmojiId ?? this.softwareIconCustomEmojiId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);