dropdownMaxHeight property

double get dropdownMaxHeight

Implementation

double get dropdownMaxHeight {
  double height = 0;

  if (dropdownData.length < 5) {
    height = dropdownData.length * 40;
  } else {
    height = maxHeight ?? 200;
  }

  return height;
}