artifact 1.0.0 copy "artifact: ^1.0.0" to clipboard
artifact: ^1.0.0 copied to clipboard

Data Modeling for the local madman

example/lib/example.dart

import 'package:artifact/artifact.dart';

@artifact
class Animal {
  final double hp;

  const Animal({this.hp = 100});
}

@artifact
class Dog extends Animal {
  final bool owned;

  const Dog({super.hp = 120, this.owned = false});
}

@artifact
class Cat extends Animal {
  final int lives;

  const Cat({super.hp = 70, this.lives = 9});
}

@artifact
class World {
  final List<Animal> animals;

  const World({this.animals = const []});
}
0
likes
0
points
10
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

Data Modeling for the local madman

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, fast_log, glob, source_gen

More

Packages that depend on artifact