ModalEntry.anchored constructor

const ModalEntry.anchored(
  1. BuildContext context, {
  2. Key? key,
  3. required String tag,
  4. String? aboveTag,
  5. String? belowTag,
  6. required String? anchorTag,
  7. Alignment anchorAlignment = Alignment.center,
  8. Alignment modalAlignment = Alignment.center,
  9. Offset offset = Offset.zero,
  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.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);