kinship_calculator 1.0.0+2 icon indicating copy to clipboard operation
kinship_calculator: ^1.0.0+2 copied to clipboard

Chinese kinship/relationship calculator. 中国亲戚关系计算器, 亲戚关系称呼计算器。

example/kinship_calculator_example.dart

import 'package:kinship_calculator/kinship_calculator.dart';

void main() {
  final demo1 = KinshipCalculator.calculate(KinshipOption(
    text: '爸爸的妈妈的哥哥',
  ));

  final demo2 = KinshipCalculator.calculate(KinshipOption(
    text: '爸爸的爸爸',
    reverse: true,
  ));

  final demo3 = KinshipCalculator.calculate(KinshipOption(
    text: '爸爸的妈妈的哥哥',
    reverse: true,
    sex: 0,
  ));

  final demo4 = KinshipCalculator.calculate(KinshipOption(
    text: '曾祖母',
    type: 'chain',
  ));

  print('$demo1\n$demo2\n$demo3\n$demo4\n');
}
1
likes
100
pub points
24%
popularity

Publisher

shield icon for verified publishersyeliulee.com

Chinese kinship/relationship calculator. 中国亲戚关系计算器, 亲戚关系称呼计算器。

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on kinship_calculator