showAntModal<T> function

Future<T?> showAntModal<T>({
  1. required BuildContext context,
  2. StateStyle? style,
  3. bool? closeOnMaskClick = false,
  4. String? title,
  5. Widget? header,
  6. Widget? content,
  7. bool? showCloseButton,
  8. List<Widget>? actions,
  9. bool? closeOnAction = false,
})

显示模态框

Implementation

Future<T?> showAntModal<T>({
  required BuildContext context,
  StateStyle? style,
  bool? closeOnMaskClick = false,
  String? title,
  Widget? header,
  Widget? content,
  bool? showCloseButton,
  List<Widget>? actions,
  bool? closeOnAction = false,
}) {
  return showDialog(
      context: context,
      barrierDismissible: closeOnMaskClick ?? false,
      builder: (context) {
        return AntModalView(
          style: style,
          title: title,
          header: header,
          content: content,
          showCloseButton: showCloseButton,
          actions: actions,
          closeOnAction: closeOnAction,
        );
      });
}