agecheck 0.2.0 copy "agecheck: ^0.2.0" to clipboard
agecheck: ^0.2.0 copied to clipboard

A dirt-simple way to validate users' age and stay compliant worldwide

example/example.dart

import '../lib/agecheck.dart';

void main() {
  if (agecheck(9, 'fr')) {
    print('Welcome, French able-to-consent person');
  } else {
    print('You need to be older to use this in France.');
  }
  if (agecheck(14, 'ca')) {
    print('Welcome, Canadian able-to-consent person');
  } else {
    print('You need to be older to use this in Canada.');
  }
  if (agecheck(21, 'au')) {
    print('Welcome, Australian able-to-consent person');
  } else {
    print('You need to be older to use this in Australia.');
  }
}
1
likes
130
pub points
0%
popularity

Publisher

verified publisherdoamatto.xyz

A dirt-simple way to validate users' age and stay compliant worldwide

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

More

Packages that depend on agecheck