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