agecheck 0.2.0 icon indicating copy to clipboard operation
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
110
pub points
0%
popularity

Publisher

verified publisher icondoamatto.xyz

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

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on agecheck