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 == kRelay && element.private);
  elements.addAll(list.map(
      (url) => Nip51ListElement(tag: kRelay, value: url, private: true)));
}