NostrConnect constructor

NostrConnect({
  1. required List<String> relays,
  2. List<String>? perms,
  3. String? appName,
  4. String? appUrl,
  5. String? appImageUrl,
})

Implementation

NostrConnect({
  required this.relays,
  this.perms,
  this.appName,
  this.appUrl,
  this.appImageUrl,
}) {
  if (relays.isEmpty) {
    throw ArgumentError("At least one relay is required");
  }
}