DropdownButtonHideUnderline constructor Null safety

const DropdownButtonHideUnderline(
  1. {Key? key,
  2. required Widget child}
)

Creates a DropdownButtonHideUnderline. A non-null child must be given.

Implementation

const DropdownButtonHideUnderline({
  super.key,
  required super.child,
}) : assert(child != null);