PageTransitionSwitcher constructor
const
PageTransitionSwitcher({
- Key? key,
- Duration duration = const Duration(milliseconds: 300),
- bool reverse = false,
- required PageTransitionSwitcherTransitionBuilder transitionBuilder,
- PageTransitionSwitcherLayoutBuilder layoutBuilder = defaultLayoutBuilder,
- Widget? child,
Creates a PageTransitionSwitcher.
The duration
, reverse
, and transitionBuilder
parameters
must not be null.
Implementation
const PageTransitionSwitcher({
super.key,
this.duration = const Duration(milliseconds: 300),
this.reverse = false,
required this.transitionBuilder,
this.layoutBuilder = defaultLayoutBuilder,
this.child,
});