unlimited 0.3.0 copy "unlimited: ^0.3.0" to clipboard
unlimited: ^0.3.0 copied to clipboard

Cards database and game rules for the Star Wars Unlimited CCG.

example/main.dart

// It's recommended to import the library with a prefix.
import 'package:unlimited/cards.dart' as cards;
import 'package:unlimited/schema.dart';

void main() {
  final vader = cards.sparkOfRebellion.find(10);

  // Pattern match to get the card's type.
  switch (vader) {
    case final BaseCard card:
      print('Base:    ${card.name}: ${card.location}');
    case final EntityCard card:
      print('Unit:    ${card.name}: ${card.title ?? '<No title>'}');
    case final EventCard card:
      print('Event:   ${card.name}');
    case final AttachmentCard card:
      print('Upgrade: ${card.name}');
  }
}
1
likes
140
pub points
0%
popularity

Publisher

verified publisherlurey.dev

Cards database and game rules for the Star Wars Unlimited CCG.

Repository (GitHub)
View/report issues

Topics

#star-wars

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, meta

More

Packages that depend on unlimited