schedule<M> method

void schedule<M>({
  1. M getValue(
    1. TransitionContext ctx,
    2. P data
    )?,
  2. M? value,
  3. Duration duration = const Duration(),
  4. bool periodic = false,
  5. 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,
  );
}