dropDownItems<T> method

List<DropDownItemState<T>> dropDownItems<T>(
  1. String fieldName
)

Retrieves the list of dropdown items for a specified fieldName.

This method retrieves the list of dropdown items associated with the dropdown field identified by the provided fieldName.

  • Parameter fieldName The name of the dropdown field to retrieve items from.
  • Returns: A list of DropDownItemState representing the items of the dropdown field.
  • Throws: ArgumentError if the field doesn't exist.

Implementation

List<DropDownItemState<T>> dropDownItems<T>(String fieldName) {
  return dropDownField<T>(fieldName).items;
}