copyWith method

Nip01Event copyWith({
  1. String? pubKey,
  2. int? createdAt,
  3. int? kind,
  4. List<List<String>>? tags,
  5. String? content,
  6. String? sig,
  7. List<String>? sources,
})

Implementation

Nip01Event copyWith({
  String? pubKey,
  int? createdAt,
  int? kind,
  List<List<String>>? tags,
  String? content,
  String? sig,
  List<String>? sources,
}) {
  return Nip01Event._(
    id,
    pubKey ?? this.pubKey,
    createdAt ?? this.createdAt,
    kind ?? this.kind,
    tags ?? this.tags,
    content ?? this.content,
    sig ?? this.sig,
  )..sources = sources ?? this.sources;
}