NostrFilter class
NostrFilter is a filter that can be used to match events.
Constructors
-
NostrFilter({List<
String> ? ids, List<String> ? authors, List<int> ? kinds, List<String> ? e, List<String> ? p, List<String> ? t, DateTime? since, DateTime? until, int? limit, String? search, List<String> ? a, Map<String, dynamic> ? additionalFilters}) -
NostrFilter is a filter that can be used to match events.
const
-
NostrFilter.fromJson(Map<
String, dynamic> json) -
Deserialize aNpstrFilter from a JSON
factory
Properties
-
a
→ List<
String> ? -
a list of event ids referenced in an "a" tag to filter with.
final
-
additionalFilters
→ Map<
String, dynamic> ? -
Additional filters to be used in the filter
final
-
a list of pubkeys or prefixes to filter with.
final
-
e
→ List<
String> ? -
a list of event ids that are referenced in an "e" tag to filter with.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ids
→ List<
String> ? -
a list of event ids to filter with.
final
-
kinds
→ List<
int> ? -
a list of a kind numbers to filter with.
final
- limit → int?
-
the maximum number of events to return
final
-
p
→ List<
String> ? -
a list of pubkeys that are referenced in a "p" tag to filter with.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → String?
-
A search string to use to filter events
final
- since → DateTime?
-
the DateTime to start the filtering from
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
t
→ List<
String> ? -
a list of event ids that are referenced in an "e" tag to filter with.
final
- until → DateTime?
-
the DateTime to end the filtering at
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serialize a NostrFilter to a Map<String, dynamic>
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited