Iterable<K> whereMethod({bool Function(K)? fun}) { if (this != null && fun != null) { return this!.where(fun); } else if (this == null) { return []; } else { return this!.toList(); } }