deleteEvent static method
NostrEvent
deleteEvent({
- required NostrKeyPairs keyPairs,
- required List<
String> eventIdsToBeDeleted, - String reasonOfDeletion = '',
- DateTime? createdAt,
Creates a new NostrEvent with the given content.
Implementation
static NostrEvent deleteEvent({
required NostrKeyPairs keyPairs,
required List<String> eventIdsToBeDeleted,
String reasonOfDeletion = '',
DateTime? createdAt,
}) {
return fromPartialData(
kind: 5,
content: reasonOfDeletion,
keyPairs: keyPairs,
tags: eventIdsToBeDeleted.map((eventId) => ['e', eventId]).toList(),
createdAt: createdAt,
);
}