updateData<D> method
_ContinuationMessageAction<M, T>
updateData<D>(
- D update(
- MessageContext msgCtx,
- M msg,
- D current,
- T ctx,
- String? label,
Implementation
_ContinuationMessageAction<M, T> updateData<D>(
D Function(MessageContext msgCtx, M msg, D current, T ctx) update, {
String? label,
}) {
return _ContinuationMessageAction<M, T>._(
_ActionType.updateData,
(msgCtx, msg, ctx) {
msgCtx.dataOrThrow<D>().update((d) => update(msgCtx, msg, d, ctx));
},
null,
label,
);
}