popupPosition property

  1. @Input()
set popupPosition (String position)

Position relative to popup source. Optional, defaults to PopupPosition.AUTO.

Implementation

@Input()
set popupPosition(String position) {
  _popupPosition = position;
  switch (_popupPosition) {
    case PopupPosition.ABOVE:
      _popupPositions = const [
        RelativePosition.AdjacentTopLeft,
        RelativePosition.AdjacentTopRight
      ];
      break;
    case PopupPosition.BELOW:
      _popupPositions = const [
        RelativePosition.AdjacentBottomLeft,
        RelativePosition.AdjacentBottomRight
      ];
      break;
    case PopupPosition.AUTO:
    default:
      _popupPositions = const [];
  }
}