show static method

void show({
  1. required Widget child,
  2. int backgroundColor = 0x42000000,
  3. int seconds = 0,
  4. bool clickClose = false,
  5. bool allowClick = false,
  6. bool ignoreContentClick = false,
  7. bool crossPage = true,
  8. int animationMilliseconds = 200,
  9. int animationReverseMilliseconds = 200,
  10. BackButtonBehaviorChecker backButtonBehavior = BackButtonBehaviorChecker.none,
  11. void cancelFunc()?,
})

Shows an overlay with the provided child widget.

The child widget will be displayed as the content of the overlay.

Implementation

static void show({
  required Widget child,
  int backgroundColor = 0x42000000,
  int seconds = 0,
  bool clickClose = false,
  bool allowClick = false,
  bool ignoreContentClick = false,
  bool crossPage = true,
  int animationMilliseconds = 200,
  int animationReverseMilliseconds = 200,
  BackButtonBehaviorChecker backButtonBehavior =
      BackButtonBehaviorChecker.none,
  void Function()? cancelFunc,
}) {
  overlayer = Overlayer.showOverlay(
    child: child,
    backgroundColor: backgroundColor,
    seconds: seconds,
    clickClose: clickClose,
    allowClick: allowClick,
    ignoreContentClick: ignoreContentClick,
    crossPage: crossPage,
    animationMilliseconds: animationMilliseconds,
    animationReverseMilliseconds: animationReverseMilliseconds,
    backButtonBehavior: backButtonBehavior,
    cancelFunc: cancelFunc,
  );
}