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