privateRelays property

List<String> get privateRelays

Implementation

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

Implementation

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