transitionBuilder property Null safety
A function that wraps a new child with an animation that transitions the child in when the animation runs in the forward direction and out when the animation runs in the reverse direction. This is only called when a new child is set (not for each build), or when a new transitionBuilder is set. If a new transitionBuilder is set, then the transition is rebuilt for the current child and all previous children using the new transitionBuilder. The function must not return null.
The default is AnimatedSwitcher.defaultTransitionBuilder.
- AnimatedSwitcherTransitionBuilder for more information about how a transition builder should function.
final AnimatedSwitcherTransitionBuilder transitionBuilder;