swlegion 0.1.0-alpha+4

  • README.md
  • Installing
  • Versions
  • new14

Database and Data Model for Star Wars: Legion.

This package is written and maintained in Dart for maintainability. Future versions will have JSON-formatted build artifacts as well for use within other systems.

Star Wars, Star Wars: Legion and all related properties and text are owned by Fantasy Flight Games, Lucasfilm Ltd., and/or Disney.


This package provides 2 libraries: database.dart and swlegion.dart. Library database is a (best effort) collection of all known units (Unit) and weapons (Weapon) in the game, and other models that may change over time.

Library swlegion.dart is just the data models, with the idea that they are used to create database.dart. In future versions, data may be exported to an API and/or JSON, and the data models should be used to access the data once deserialized.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  swlegion: ^0.1.0-alpha+4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:swlegion/swlegion.dart';
Version Uploaded Documentation Archive
0.1.0-alpha+4 Dec 7, 2018 Go to the documentation of swlegion 0.1.0-alpha+4 Download swlegion 0.1.0-alpha+4 archive
0.1.0-alpha+3 Dec 7, 2018 Go to the documentation of swlegion 0.1.0-alpha+3 Download swlegion 0.1.0-alpha+3 archive
0.1.0-alpha+2 Dec 7, 2018 Go to the documentation of swlegion 0.1.0-alpha+2 Download swlegion 0.1.0-alpha+2 archive
0.1.0-alpha+1 Dec 6, 2018 Go to the documentation of swlegion 0.1.0-alpha+1 Download swlegion 0.1.0-alpha+1 archive
0.1.0-alpha Nov 23, 2018 Go to the documentation of swlegion 0.1.0-alpha Download swlegion 0.1.0-alpha archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 7, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms:

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/database/units/snowtroopers.dart. (-43.75 points)

Analysis of lib/src/database/units/snowtroopers.dart failed with 2 errors:

line 3 col 8: Target of URI doesn't exist: '../weapons/e_11_blaster_Rifle.dart'.

line 26 col 5: Undefined name 'e11BlasterRifle'.

Fix lib/src/database/units/stormtroopers.dart. (-43.75 points)

Analysis of lib/src/database/units/stormtroopers.dart failed with 2 errors:

line 3 col 8: Target of URI doesn't exist: '../weapons/e_11_blaster_Rifle.dart'.

line 26 col 5: Undefined name 'e11BlasterRifle'.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use swlegion.dart.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution, their API may change in breaking ways.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
built_collection ^4.0.0 4.1.0
built_value ^6.1.6 6.1.6
meta ^1.1.6 1.1.6
Transitive dependencies
collection 1.14.11
fixnum 0.10.9
matcher 0.12.4
path 1.6.2
quiver 2.0.1
stack_trace 1.9.3
Dev dependencies
build_runner ^1.1.2
built_value_generator ^6.1.6
test ^1.5.1