DropdownMenuBuilder constructor

const DropdownMenuBuilder({
  1. required WidgetBuilder builder,
  2. required double draughtHeight,
  3. double? screenHeight,
  4. double bottomSpacingHeight = 0.0,
})

Implementation

const DropdownMenuBuilder({required this.builder, required this.draughtHeight, this.screenHeight, this.bottomSpacingHeight = 0.0})
    : height = (screenHeight != null && screenHeight != 0.0 && screenHeight > 0.0)
          ? ((screenHeight - bottomSpacingHeight) > draughtHeight)
              ? draughtHeight
              : (screenHeight - bottomSpacingHeight)
          : draughtHeight;