Future whenHas(String key) async { if (_all[key] != null) { return Future.value(_all[key]); } else { return Future.error(""); } }