ModalEntry.positioned constructor

const ModalEntry.positioned(
  1. BuildContext context, {
  2. Key? key,
  3. required String tag,
  4. double? left,
  5. double? top,
  6. double? right,
  7. double? bottom,
  8. String? aboveTag,
  9. String? belowTag,
  10. bool removeOnPop = false,
  11. bool removeOnPushNext = false,
  12. bool barrierDismissible = false,
  13. Color barrierColor = Colors.transparent,
  14. VoidCallback? onRemove,
  15. 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);