post<M> method

void post<M>({
  1. M getValue(
    1. TransitionContext ctx,
    2. D data
    )?,
  2. M? value,
  3. String? label,
})

Implementation

void post<M>({
  M Function(TransitionContext ctx, D data)? getValue,
  M? value,
  String? label,
}) {
  _handler = _postWithContext<M, D>(
    (transCtx) => transCtx.dataValueOrThrow<D>(),
    getValue,
    value,
    label,
  );
}