flattenDeep<R> method
Implementation
Iterable<R?> flattenDeep<R>() {
return expand((element) {
if (element is Iterable) {
return element.flattenDeep().cast();
} else {
return [element].cast();
}
});
}
Iterable<R?> flattenDeep<R>() {
return expand((element) {
if (element is Iterable) {
return element.flattenDeep().cast();
} else {
return [element].cast();
}
});
}