fromPartialData static method

SentNostrEvent fromPartialData({
  1. required int kind,
  2. required String content,
  3. required NostrKeyPairs keyPairs,
  4. List<List<String>>? tags,
  5. DateTime? createdAt,
  6. String? ots,
})

This requires only to set the fields which can be used & showed to the user directly.

Implementation

static SentNostrEvent fromPartialData({
  required int kind,
  required String content,
  required NostrKeyPairs keyPairs,
  List<List<String>>? tags,
  DateTime? createdAt,
  String? ots,
}) {
  return SentNostrEvent.fromPartialData(
    kind: kind,
    content: content,
    keyPairs: keyPairs,
    createdAt: createdAt,
    ots: ots,
    tags: tags,
  );
}