DelayedEffectController was not calling setToStart on its child, causing it to not behave as expected when used with InfiniteEffectController. This was reported by a discord member in this message.
This PR introduces a HasSingleChildEffectController mixin which can be added to any effect controller that wraps a single child effect controller. This mixin makes sure that the setToStart, setToEnd and onMount methods always get invoked on the child controllers.
Description
DelayedEffectController
was not callingsetToStart
on its child, causing it to not behave as expected when used withInfiniteEffectController
. This was reported by a discord member in this message.This PR introduces a
HasSingleChildEffectController
mixin which can be added to any effect controller that wraps a single child effect controller. This mixin makes sure that thesetToStart
,setToEnd
andonMount
methods always get invoked on the child controllers.Checklist
docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues
NA