dent 0.2.0 dent: ^0.2.0 copied to clipboard
Dart entity classes such as Person, Place, and Product. The classes support 'built_value' immutability and serialization.
import 'package:dent/business.dart';
import 'package:dent/core.dart';
Future main() async {
final product = Product(
title: Text('Phone'),
description: Text('A new phone'),
price: Money.usd(300),
);
// Mutate
final newProduct = product.rebuild((b) {
b.price += Money.usd(50);
});
// Print
print(newProduct.toString());
}