emitSignal method
Emit a named signal with identity verification. Automatically includes the identityToken to allow the receiver to verify that the signal truly originated from this module.
Implementation
void emitSignal(String signalName, {dynamic data}) {
eventBus.emitSignal(
signalName,
data: data,
sourceModuleId: moduleId,
identityToken: identityToken,
);
}