recollapsing FLRW-universes

can you construct a FLRW-universe with dark matter and dark energy (with constant equation of state \(w\)) that recollapses? what’s a suitable condition?