getSelectListWithLinkage<T, S> static method

List<S>? getSelectListWithLinkage<T, S>(
  1. List<ISelectBox<T>>? dataList, {
  2. List<S>? collection,
  3. S convert(
    1. ISelectBox<T> event
    )?,
})

Implementation

static List<S>? getSelectListWithLinkage<T, S>(List<ISelectBox<T>>? dataList,
    {List<S>? collection, S convert(ISelectBox<T> event)?}) {
  collection ??= List.empty(growable: true);
  if (dataList == null || dataList.isEmpty) {
    return collection;
  }
  _getSelectListWithLinkage(dataList, collection: collection, convert: convert);
  return collection;
}