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