DropdownMenuBuilder constructor
const
DropdownMenuBuilder({
- required WidgetBuilder builder,
- required double draughtHeight,
- double? screenHeight,
- 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;