bool at(BuildContext context)

Returns whether the underline of DropdownButton widgets should be hidden.

Source

static bool at(BuildContext context) {
  return context.inheritFromWidgetOfExactType(DropdownButtonHideUnderline) != null;
}