EventFractal constructor
EventFractal({
- int? id,
- String hash = '',
- String? pubkey,
- int? createdAt,
- String content = '',
- int syncAt = 0,
- NodeFractal<
EventFractal> ? owner, - String sig = '',
- EventFractal? to,
- FKind kind = FKind.basic,
Implementation
EventFractal({
super.id,
String hash = '',
String? pubkey,
int? createdAt,
this.content = '',
this.syncAt = 0,
NodeFractal? owner,
this.sig = '',
EventFractal? to,
super.kind,
}) {
super.to = to;
if (this is! Attr /*&& this is! ClientFractal*/) {
this.owner = owner ?? UserFractal.active.value ?? DeviceFractal.my;
}
syncAt = to?.decideSync ?? 1;
this.hash = hash;
this.pubkey = pubkey ?? _myKeyPair?.publicKey ?? '';
if (createdAt == null) this.createdAt = unixSeconds;
_construct();
//ownerC.complete(owner);
construct();
}