metaMatch

fun metaMatch(key: String, test: (Any?) -> Boolean): EventScope<T>

Adds a condition that checks if the metadata value for a given key matches a specified test.

Return

The updated EventScope instance.

Parameters

key

The metadata key to check.

test

The test function to apply to the metadata value.