ModalEntry.aligned constructor
const
ModalEntry.aligned(
- BuildContext context, {
- Key? key,
- required String tag,
- required Alignment alignment,
- String? aboveTag,
- String? belowTag,
- Alignment anchorAlignment = Alignment.center,
- Alignment modalAlignment = Alignment.center,
- Offset offset = Offset.zero,
- bool removeOnPop = false,
- bool removeOnPushNext = false,
- bool barrierDismissible = false,
- Color barrierColor = Colors.transparent,
- VoidCallback? onRemove,
- required Widget child,
Implementation
const ModalEntry.aligned(
this.context, {
Key? key,
required this.tag,
required this.alignment,
this.aboveTag,
this.belowTag,
this.anchorAlignment = Alignment.center,
this.modalAlignment = Alignment.center,
this.offset = Offset.zero,
this.removeOnPop = false,
this.removeOnPushNext = false,
this.barrierDismissible = false,
this.barrierColor = Colors.transparent,
this.onRemove,
required this.child,
}) : left = null,
top = null,
right = null,
bottom = null,
anchorTag = null,
_modalEntryType = _ModalEntryType.aligned,
assert(aboveTag == null || belowTag == null),
super(key: key);