wipe<T> static method

ShaderPageRoute<T> wipe<T>({
  1. required Widget page,
  2. SweepDirection direction = SweepDirection.leftToRight,
  3. Duration duration = const Duration(milliseconds: 600),
  4. double softness = 4.0,
  5. double rotation = 0.0,
  6. bool invert = false,
  7. TransitionCover? cover,
  8. bool? swipeBack,
  9. RouteSettings? settings,
})

Pushes a WipeTransition route. softness is the feather width in px (0 = hard edge); rotation tilts the edge in radians.

Implementation

static ShaderPageRoute<T> wipe<T>({
  required Widget page,
  SweepDirection direction = SweepDirection.leftToRight,
  Duration duration = const Duration(milliseconds: 600),
  double softness = 4.0,
  double rotation = 0.0,
  bool invert = false,
  TransitionCover? cover,
  bool? swipeBack,
  RouteSettings? settings,
}) {
  return ShaderPageRoute<T>(
    page: page,
    transition: WipeTransition(
      direction: direction,
      duration: duration,
      softness: softness,
      rotation: rotation,
      invert: invert,
      cover: cover,
    ),
    swipeBack: swipeBack,
    settings: settings,
  );
}