actualHeight property

  1. @override
double get actualHeight
override

The height of the DropDownMenu content view

Implementation

@override
double get actualHeight {
  int rowCount = items.length ~/ crossAxisCount +
      (items.length % crossAxisCount == 0 ? 0 : 1);
  return boxStyle.height ??
      itemStyle.height * rowCount +
          crossAxisSpacing * (rowCount - 1) +
          boxStyle.margin.vertical +
          boxStyle.padding.vertical +
          (itemStyle.margin?.vertical ?? 0) +
          ((maxMultiChoiceSize != null && maxMultiChoiceSize! > 0)
              ? math.max(buttonStyle.resetHeight, buttonStyle.confirmHeight)
              : 0);
}