NdkRequest class
Constructors
-
NdkRequest.query(String id, {String? name, required List<
Filter> filters, int desiredCoverage = 2, bool closeOnEOSE = true, RelaySet? relaySet, Iterable<String> ? explicitRelays, bool cacheRead = true, bool cacheWrite = true, int? timeout = RequestDefaults.DEFAULT_STREAM_IDLE_TIMEOUT + 1, dynamic onTimeout(RequestState)?}) -
NdkRequest.subscription(String id, {String? name, required List<
Filter> filters, int desiredCoverage = 2, bool closeOnEOSE = false, RelaySet? relaySet, Iterable<String> ? explicitRelays, bool cacheRead = true, bool cacheWrite = true})
Properties
- cacheRead ↔ bool
-
getter/setter pair
- cacheWrite ↔ bool
-
getter/setter pair
- closeOnEOSE ↔ bool
-
getter/setter pair
- desiredCoverage → int
-
final
-
explicitRelays
↔ Iterable<
String> ? -
when specified only these relays are used and inbox/outbox get ignored
getter/setter pair
-
filters
↔ List<
Filter> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
nostr id
getter/setter pair
- name ↔ String?
-
getter/setter pair
- onTimeout ↔ dynamic Function(RequestState)?
-
getter/setter pair
- relaySet ↔ RelaySet?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout ↔ int?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited