static List<T> compact<T>(Iterable<T>? list) => list?.where((item) => item != null).toList() ?? <T>[];