artifact 1.0.11
artifact: ^1.0.11 copied to clipboard
Data Modeling for the local madman
example/lib/example.dart
import 'package:artifact/artifact.dart';
import 'package:example/testd.dart';
// User facing, defines crud here
@artifact
@crud([CrudModel("test", User)])
class User {
@attach("dat")
final int x;
const User({required this.x});
}
// This is the "custom" annotation which hooks into artifact
class crud extends attach<List<CrudModel>> {
const crud(super.data);
}