Filter class

filter is a JSON object that determines what events will be sent in that subscription

Constructors

Filter({List<String>? ids, List<String>? authors, List<int>? kinds, List<String>? e, List<String>? a, List<String>? p, int? since, int? until, int? limit, String? search})
Default constructor
Filter.fromJson(Map<String, dynamic> json)
Deserialize a filter from a JSON

Properties

a List<String>?
a list of event ids that are referenced in an "a" tag
getter/setter pair
authors List<String>?
a list of pubkeys or prefixes, the pubkey of an event must be one of these
getter/setter pair
e List<String>?
a list of event ids that are referenced in an "e" tag
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ids List<String>?
a list of event ids or prefixes
getter/setter pair
kinds List<int>?
a list of a kind numbers
getter/setter pair
limit int?
maximum number of events to be returned in the initial query
getter/setter pair
p List<String>?
a list of pubkeys that are referenced in a "p" tag
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
nip-50 search term
getter/setter pair
since int?
a timestamp, events must be newer than this to pass
getter/setter pair
until int?
a timestamp, events must be older than this to pass
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize a filter in JSON
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited