ModalEntry.anchored constructor
const
ModalEntry.anchored(
- BuildContext context, {
- Key? key,
- required String tag,
- String? aboveTag,
- String? belowTag,
- required String? anchorTag,
- 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.anchored(
this.context, {
Key? key,
required this.tag,
this.aboveTag,
this.belowTag,
required this.anchorTag,
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 = 0,
top = null,
right = null,
bottom = 0,
alignment = Alignment.center,
_modalEntryType = _ModalEntryType.anchored,
assert(aboveTag == null || belowTag == null),
super(key: key);