Returns the filtered elements of the list if it is success or null
Iterable<T>? whereOrNull(bool Function(T) predicate) => match( onSuccess: (list) => list.where(predicate), onError: (e) => null, );