copyWith method
Implementation
Nip01Event copyWith({
String? id,
String? pubKey,
int? createdAt,
int? kind,
List<List<String>>? tags,
String? content,
String? sig,
bool? validSig,
List<String>? sources,
}) {
return Nip01Event(
id: id ?? this.id,
pubKey: pubKey ?? this.pubKey,
createdAt: createdAt ?? this.createdAt,
kind: kind ?? this.kind,
tags: tags ?? this.tags,
content: content ?? this.content,
sig: sig ?? this.sig,
validSig: validSig ?? this.validSig,
sources: sources ?? this.sources);
}