relationships 0.0.1 copy "relationships: ^0.0.1" to clipboard
relationships: ^0.0.1 copied to clipboard

Relationship modeling and kinship calculations with localized descriptions.

example/relationships_example.dart

import 'package:relationships/i18n/strings.g.dart';
import 'package:relationships/relationships.dart';

void main() {
  LocaleSettings.setLocale(AppLocale.en);

  final father = Person(name: 'H', gender: Gender.male);
  final daughter = Person(name: 'D', gender: Gender.female);

  father.addChild(daughter);

  final relationship = RelationshipCalculator.calculateRelationship(father, daughter);
  if (relationship == null) {
    print('No relationship found.');
    return;
  }

  print('Relationship: ${relationship.detailedDescription}');
}
1
likes
140
points
10
downloads

Publisher

verified publisherali-hnaineh.dev

Weekly Downloads

Relationship modeling and kinship calculations with localized descriptions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

collection, freezed, freezed_annotation, intl, json_annotation, slang, uuid

More

Packages that depend on relationships