anilist 1.0.3 copy "anilist: ^1.0.3" to clipboard
anilist: ^1.0.3 copied to clipboard

outdated

Unofficial AniList GraphQL API. Quick and easy request and fields selection with cascade operations.

example/main.dart

import 'package:anilist/anilist.dart';

void main() async {
  final charSelect = AnilistCharacterSelect();
  charSelect..withNameFull();
  final staffSelect = AnilistStaffSelect();
  staffSelect..withNameFull();
  final request = AnilistMediaRequest();
  request
    ..withIdMal()
    ..withTitle()
    ..withType()
    ..withFormat()
    ..withIdMal()
    ..withStatus()
    ..withDescription()
    ..withStartDate()
    ..withEndDate()
    ..withSeason()
    ..withCountryOfOrigin()
    ..withIsLicensed()
    ..withSource()
    ..withHashtag()
    ..withTrailer()
    ..withUpdatedAt()
    ..withCoverImage()
    ..withBannerImage()
    ..withGenres()
    ..withSynonyms()
    ..withMeanScore()
    ..withAverageScore()
    ..withPopularity()
    ..withIsLocked()
    ..withFavourites()
    ..withTrending()
    ..withTagsId()
    ..withTagsName()
    ..withCharcters(AnilistSubquery(charSelect, perPage: 5))
    ..withStaff(AnilistSubquery(staffSelect, perPage: 5));
  var media = await request.byId(53390);
  print(request.query);
  print(media);
}
11
likes
30
pub points
37%
popularity

Publisher

verified publisherjezequel.org

Unofficial AniList GraphQL API. Quick and easy request and fields selection with cascade operations.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, built_value, dio, meta

More

Packages that depend on anilist