ElPopup constructor
const
ElPopup({
- Key? key,
- ValueChanged<
bool?> ? onChanged, - dynamic show,
- Duration? duration,
- Object? overlayId,
- ElOverlayState? overlayState,
- bool rootOverlay = false,
- bool keepAlive = false,
- bool preventBack = false,
- VoidCallback? onInsert,
- VoidCallback? onRemove,
- required Widget transitionBuilder(
- BuildContext context,
- Widget child
- required Widget overlayBuilder(
- BuildContext context
- required Widget builder(
- BuildContext context,
- ElPopupState<
ElPopup> state
Implementation
const ElPopup({
super.key,
super.onChanged,
this.show,
this.duration,
this.overlayId,
this.overlayState,
this.rootOverlay = false,
this.keepAlive = false,
this.preventBack = false,
this.onInsert,
this.onRemove,
required this.transitionBuilder,
required this.overlayBuilder,
required this.builder,
}) : assert(
show == null || show is bool || show is ValueNotifier<bool>,
'弹出层 show 参数必须为 bool 类型',
),
super(show);