ModalEntry.aligned constructor

const ModalEntry.aligned(
  1. BuildContext context, {
  2. Key? key,
  3. required String tag,
  4. required Alignment alignment,
  5. String? aboveTag,
  6. String? belowTag,
  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.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);