schedule<M> method
void
schedule<M>({
- M getValue(
- TransitionContext ctx,
- P data
- M? value,
- Duration duration = const Duration(),
- bool periodic = false,
- String? label,
Implementation
void schedule<M>({
M Function(TransitionContext ctx, P data)? getValue,
M? value,
Duration duration = const Duration(),
bool periodic = false,
String? label,
}) {
_handler = _scheduleWithContext<M, P>(
(transCtx) => transCtx.payloadOrThrow<P>(),
getValue,
value,
duration,
periodic,
label,
);
}