SentNostrEvent class

Inheritance
Implementers

Constructors

SentNostrEvent({required String id, required int kind, required String content, required String sig, required String pubkey, required DateTime createdAt, required List<List<String>> tags, String? ots})
This represents a low level Nostr event that requires setting all fields manually, which requires you to doo all encodings... You can use NostrEvent.fromPartialData to create an event with less fields and lower complexity..
SentNostrEvent.deleteEvent({required NostrKeyPairs keyPairs, required List<String> eventIdsToBeDeleted, String reasonOfDeletion = "", DateTime? createdAt})
factory
SentNostrEvent.fromPartialData({required int kind, required String content, required NostrKeyPairs keyPairs, List<List<String>>? tags, DateTime? createdAt, String? ots})
factory

Properties

content String
The content of the event.
final
createdAt DateTime
The creation date of the event.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the event.
final
kind int
The kind of the event.
final
ots String?
The ots of the event.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
pubkey String
The public key of the event creator.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sig String
The signature of the event.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tags List<List<String>>
The tags of the event.
final

Methods

copyWith({String? id, int? kind, String? content, String? sig, String? pubkey, DateTime? createdAt, List<List<String>>? tags, String? ots}) SentNostrEvent
This represents a low level Nostr event that requires setting all fields manually, which requires you to doo all encodings... You can use NostrEvent.fromPartialData to create an event with less fields and lower complexity..
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialized() String
Returns a serialized NostrEvent from this event.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited