LightningApiClient class

Constructors

LightningApiClient({Client? httpClient})

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → Client?
final
log → Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

expandFeed({required String tag, required FeedSortOrder sort, int amount = 20}) Future<void>
Expand the feed and add it to the stream
expandThreads({String? tag, ThreadsSortOrder? sort, int amount = 20}) Future<void>
Expand the feed and add it to the stream
getAccount(String name) Stream<Account?>
getComments(Authorperm postId) → ValueStream<Comments?>
getFeed({required String tag, required FeedSortOrder sort, bool requestLatest = false}) Stream<Feed>
getMetadata(String url, {bool requestLatest = false}) Future<Map<String, dynamic>?>
getPost(Authorperm id) → ValueStream<Post?>
getThread(Authorperm id) → ValueStream<Thread?>
getThreads({String? tag, ThreadsSortOrder? sort, bool requestLatest = false}) Stream<Feed>
getThreadTags({bool requestLatest = false}) Future<Map<String, int>?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshComments(Authorperm id) Future<void>
Refresh the comments and add it to the stream
refreshFeed({required String tag, required FeedSortOrder sort}) Future<void>
Refresh the feed and add it to the stream
refreshPost(Authorperm id) Future<void>
Refresh the post and add it to the stream
refreshThread(Authorperm id) Future<void>
Refresh the thread and add it to the stream
refreshThreads({String? tag, ThreadsSortOrder? sort}) Future<void>
Refresh the feed and add it to the stream
toString() String
A string representation of this object.
inherited

Operators

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