toggle method
Adds a ToggleEffect that allows you to toggle the behavior of a builder
function at a certain
point in time.
Implementation
T toggle({
Duration? delay,
Duration? duration,
required ToggleEffectBuilder builder,
}) =>
addEffect(ToggleEffect(
delay: delay,
duration: duration,
builder: builder,
));