show static method Null safety

Future<void> show(
  1. {required BuildContext context,
  2. required Widget child,
  3. bool childFade = false,
  4. int duration = 300,
  5. double blurRadius = 15.0,
  6. Widget? bottomButton,
  7. double bottomHeight = kBottomNavigationBarHeight,
  8. bool bottomButtonRotate = true,
  9. double bottomButtonRotateDegree = 45.0}
)

Implementation

static Future<void> show({
  required BuildContext context,
  required Widget child,
  bool childFade = false,
  int duration = 300,
  double blurRadius = 15.0,
  Widget? bottomButton,
  double bottomHeight = kBottomNavigationBarHeight,
  bool bottomButtonRotate = true,
  double bottomButtonRotateDegree = 45.0,
}) {
  return Navigator.of(context).push(
    TransparentRoute(
      builder: (BuildContext context) => RippleBackdropAnimatePage(
        child: child,
        childFade: childFade,
        duration: duration,
        blurRadius: blurRadius,
        bottomButton: bottomButton,
        bottomHeight: bottomHeight,
        bottomButtonRotate: bottomButtonRotate,
      ),
    ),
  );
}