czech 3.0.2 copy "czech: ^3.0.2" to clipboard
czech: ^3.0.2 copied to clipboard

Set of Czechia-specific functions: parse and validate bank account number, personal ID, company ID, ... Hezky česky!

example/czech_example.dart

// Copyright (c) 2017, tomucha. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:czech/czech.dart' as cz;

void main() {
  // a.k.a Rodné číslo
  if (cz.isCzechPersonalIdNumber('780324/6543')) {
    print('Valid!');
  }

  // a.k.a. IČ
  if (cz.isCzechCompanyIdNumber('04626133')) {
    print('Valid!');
  }

  // a.k.a. Číslo účtu - with bank code by default
  if (cz.isCzechBankAccount('3033/2700')) {
    print('Valid!');
  }

  // a.k.a. Číslo účtu - without a bank code
  if (cz.isCzechBankAccount('3033', withBankCode: false)) {
    print('Valid!');
  }
}
1
likes
140
pub points
2%
popularity

Publisher

verified publisherfnx.io

Set of Czechia-specific functions: parse and validate bank account number, personal ID, company ID, ... Hezky česky!

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

mod97

More

Packages that depend on czech