expandAndRemoveEmpty<TCast> method

List<TCast> expandAndRemoveEmpty<TCast>(
  1. Iterable<TCast?> callback(
    1. T item
    )
)

After replacing the data in the list through callback, delete the Null.

Implementation

List<TCast> expandAndRemoveEmpty<TCast>(
    Iterable<TCast?> Function(T item) callback) {
  return expand<TCast?>(callback).removeEmpty();
}