mapAndRemoveEmpty<TCast> method
After replacing the data in the list, delete the null.
callback
: Callback function used in map.
Implementation
List<TCast> mapAndRemoveEmpty<TCast>(TCast? Function(T item) callback) {
return map<TCast?>(callback).removeEmpty();
}