show method
Implementation
Future<bool?> show() async {
return await showGeneralDialog(
context: context,
pageBuilder: (BuildContext buildContext, Animation<double> animation, Animation<double> secondaryAnimation) {
return _buildDialog();
},
barrierDismissible: style.isOverlayTapDismiss,
barrierLabel: MaterialLocalizations
.of(context)
.modalBarrierDismissLabel,
barrierColor: style.overlayColor,
useRootNavigator: useRootNavigator,
transitionDuration: style.animationDuration,
transitionBuilder: (BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,) =>
alertAnimation == null
? _showAnimation(animation, secondaryAnimation, child)
: alertAnimation!(context, animation, secondaryAnimation, child));
}