agecheck 0.2.0 agecheck: ^0.2.0 copied to clipboard
A dirt-simple way to validate users' age and stay compliant worldwide
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.');
}
}