hacker_news_dart 0.1.5 copy "hacker_news_dart: ^0.1.5" to clipboard
hacker_news_dart: ^0.1.5 copied to clipboard

A library for accessing YC HackerNews using non-blocking operations

example/hacker_news_dart_example.dart

library hacker_news_dart;

import 'package:hacker_news_dart/src/request_service.dart';
import 'package:hacker_news_dart/src/story.dart';

main() {
  final Future<Item> sf = requestStory(8863);
  sf.then((Item story) {
    final comments = requestCommentsForStory(story);
    comments.forEach((f) {
      f.then((Item comment) {
        print(comment.id);
      });
    });
  });
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A library for accessing YC HackerNews using non-blocking operations

Repository (GitLab)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

json_annotation, uri

More

Packages that depend on hacker_news_dart