registerOkCommandCallBack static method

void registerOkCommandCallBack(
  1. String associatedEventId,
  2. void onOk(
    1. NostrEventOkCommand ok
    )?
)

Implementation

static void registerOkCommandCallBack(
  String associatedEventId,
  void Function(NostrEventOkCommand ok)? onOk,
) {
  okCommandCallBacks[associatedEventId] = onOk;
}