dart_swapi 0.1.0 icon indicating copy to clipboard operation
dart_swapi: ^0.1.0 copied to clipboard

A Dart plugin implementation of the SWAPI (The Star Wars API)

example/example.md

swapi.getSpecies(url: url_next_page).then((species) {
    for (int i = 0; i < species.results.length; i++) {
        print(species.results[i].name);
        SpeciesItem item = await swapi.getSpeciesItem(url: species.results[i].url);
        print("---> " + item.language);
    }
})
Planets planets = await swapi.getPlanets();
for (int i = 0; i < planets.results.length; i++) {
    print(planets.results[i].name);
    PlanetsItem item = await swapi.getPlanetsItem(url: planets.results[i].url);
    print("---> " + item.rotationPeriod);
}
0
likes
90
pub points
0%
popularity

Publisher

verified publisher iconthelabs.dev

A Dart plugin implementation of the SWAPI (The Star Wars API)

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

http

More

Packages that depend on dart_swapi