initDropDownBloc function

UIDropDownBloc initDropDownBloc({
  1. List<String> dropDownItems = const ["Test 1", "Test 2"],
  2. String value = "",
  3. String localKey = "ui_dropdown_bloc_value",
})

call this method to initialize your own dropdown bloc localKey -> key used to store values

Implementation

UIDropDownBloc initDropDownBloc({List<String> dropDownItems = const ["Test 1", "Test 2"], String value = "", String localKey = "ui_dropdown_bloc_value"}) {
  if(value.isEmpty) {
    value = dropDownItems.first;
  }
  return UIDropDownBloc(getLocalDS(), dropDownItems, value, localKey: localKey);
}