duration property
duration Defaults to Duration(milliseconds: 500) The duration of the transition from the frontChild value to the backChild.
This duration is applied to the given frontChild when that property is set to a new child. The same duration is used when fading out, unless reverseDuration is set. Changing duration will not affect the durations of transitions already in progress.
Implementation
final Duration? duration;