Widget listToBuilder<T>(Widget Function(E value) f) { return ListView( children: map((e) => f(e)).whereType<Widget>().toList(), ); }