DropdownDecoration constructor

const DropdownDecoration({
  1. Color backgroundColor = Colors.white,
  2. double elevation = 1,
  3. double maxHeight = 400,
  4. double marginTop = 0,
  5. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
  6. Widget? footer,
  7. Widget? header,
})

Creates a new instance of DropdownDecoration.

backgroundColor is the background color of the dropdown. The default value is white.

elevation is the elevation of the dropdown. The default value is 1.

maxHeight is the height of the dropdown. The default value is 300.

marginTop is the margin top of the dropdown. The default value is 0.

borderRadius is the border radius of the dropdown. The default value is 12.

Implementation

const DropdownDecoration({
  this.backgroundColor = Colors.white,
  this.elevation = 1,
  this.maxHeight = 400,
  this.marginTop = 0,
  this.borderRadius = const BorderRadius.all(Radius.circular(12)),
  this.footer,
  this.header,
});