MenuDialog constructor

MenuDialog({
  1. required BuildContext context,
  2. required dynamic items,
  3. required Function callback,
  4. String? selectedKey,
  5. int maxShowItems = 10,
  6. List<Map<String, String>>? formattedItems,
  7. String? firstOption,
  8. String? keyItemName,
})

Implementation

MenuDialog({
  required this.context,
  required this.items,
  required this.callback,
  this.selectedKey,
  this.maxShowItems = 10,
  this.formattedItems,
  this.firstOption,
  this.keyItemName,
}) : assert(items is List<String> || items is List<Map<String, String>> || items is List || items is List<MapEntry> || items is Map){
  _init();
}