Validate Swedish personal identity numbers.
Published on pub.dev as personnummer_dart. It replaces the old personnummer package, which can no longer be updated. Change the dependency and the import to personnummer_dart, the API is the same.
import 'package:personnummer_dart/personnummer_dart.dart';
Personnummer.valid('198507099805');
//=> trueSee test/personnummer.dart for more examples.
Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the personnummer project. This library carries his work. He is missed.
MIT