custom static method

Route custom(
  1. RouteSettings settings,
  2. Widget widget,
  3. PageTransitionsBuilder transitionsBuilder, {
  4. bool performOutgoingAnimation = true,
})

Usage: onGenerateRoute: (settings) => { "/custom": FlutterPageTransition.custom(settings, NextPage(), CustomPageTransitionsBuilder()); }

Implementation

static Route<dynamic> custom(
  RouteSettings settings,
  Widget widget,
  PageTransitionsBuilder transitionsBuilder, {
  bool performOutgoingAnimation = true,
}) {
  return _pageRouteTransition(
    widget: widget,
    settings: settings,
    transitionsBuilder: transitionsBuilder,
    performOutgoingAnimation: performOutgoingAnimation,
  );
}