trigger method
Triggers a callback associated with the given key.
Implementation
void trigger({required String key, Map<String, dynamic>? data}) {
_cleanupCallbacks();
if (_subTagCallbacks.containsKey(key)) {
_subTagCallbacks[key]?.target?.call(data: data);
}
}