Search class

Constructors

Search.new({required CacheManager cacheManager, required Requests requests})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

metadataSearch(String query, {int limit = 10}) Future<List<Metadata>>
Search for metadata
query can be pubkey, name, nip05
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchEvents({List<String>? ids, List<String>? authors, List<int>? kinds, Map<String, List<String>>? tags, int? since, int? until, String? search, int limit = 100, bool cacheOnly = false}) Future<Iterable<Nip01Event>>
Search for events
ids list of event ids
authors list of authors
kinds list of kinds
tags map of tags
since timestamp since
until timestamp until
search search string
limit limit of results
cacheOnly if true only cache is used (a lot faster but no network fetch)
toString() String
A string representation of this object.
inherited

Operators

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