dent 0.2.0
dent: ^0.2.0 copied to clipboard

discontinued

Dart entity classes such as Person, Place, and Product. The classes support 'built_value' immutability and serialization.

example/example.dart

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());
}
0
likes
0
pub points
7%
popularity

Publisher

dint.dev

Dart entity classes such as Person, Place, and Product. The classes support 'built_value' immutability and serialization.

Repository (GitHub)
View/report issues

Documentation

API reference

Dependencies

args, built_collection, built_value, collection, database, meta

More

Packages that depend on dent