publicRelays property

List<String> get publicRelays

Implementation

List<String> get publicRelays =>
    relays.where((element) => !element.private).map((e) => e.value).toList();
set publicRelays (List<String> list)

Implementation

set publicRelays(List<String> list) {
  elements.removeWhere((element) => element.tag == RELAY && !element.private);
  elements.addAll(list.map(
      (url) => Nip51ListElement(tag: RELAY, value: url, private: false)));
}