registerOkCommandCallBack method
void
registerOkCommandCallBack({
- required String associatedEventId,
- required void onOk(
- String relay,
- NostrEventOkCommand ok
- required String relay,
Registers an ok command callback to the registry with the given associatedEventId
.
Implementation
void registerOkCommandCallBack({
required String associatedEventId,
required void Function(String relay, NostrEventOkCommand ok) onOk,
required String relay,
}) {
final relayOkRegister = getOrCreateRegister(okCommandCallBacks, relay);
relayOkRegister[associatedEventId] = onOk;
}