staticGet static method
Retrieves a value by key. Triggers valueRead hooks.
Implementation
static Future<dynamic> staticGet(HHPayloadI payload) async {
final ctx = HHCtx(payload);
return await ctx.control.emit(
TriggerType.valueRead.name,
action: (ctx) async {
return await ctx.access.storeGet(ctx.payload.key!);
},
handleCtrlException: true,
);
}