PageTransitionSwitcher constructor

const PageTransitionSwitcher({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 300),
  3. bool reverse = false,
  4. required PageTransitionSwitcherTransitionBuilder transitionBuilder,
  5. PageTransitionSwitcherLayoutBuilder layoutBuilder = defaultLayoutBuilder,
  6. 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,
});