flutter_iban_tools 0.1.2 copy "flutter_iban_tools: ^0.1.2" to clipboard
flutter_iban_tools: ^0.1.2 copied to clipboard

Flutter IBANTools is Flutter/Dart library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.

Flutter IBANTools #

License

GitHub last commit GitHub contributors GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

No deps

About #

Flutter IBANTools is Flutter/Dart library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers. Inspired by ibantools

For more information about IBAN/BBAN see wikipedia page and IBAN registry.

For more information about BIC/SWIFT see this wikipedia page.

Installation #

Flutter/Dart #

$ flutter pub add flutter_iban_tools

Usage #

See full documentation with examples on Github pages.

Flutter/Dart #

import 'package:flutter_iban_tools/flutter_iban_tools.dart' as ibantools;

void main() {
  final String? iban = electronicFormatIBAN('NL91 ABNA 0417 1643 00'); // 'NL91ABNA0517164300'
  ibantools.isValidIBAN(iban);
  
  // If you want to know reason why IBAN is invalid
  ibantools.validateIBAN('NL91ABNA0517164300'); 
  // Returns { valid: false, errorCodes: [iban.ValidationErrorsIBAN.WrongIBANChecksum] }

  // Validate BIC
  ibantools.isValidBIC('ABNANL2A');
}

Extension #

Country specifications can be extended with national BBAN validations by calling setCountryBBANValidation.

Example implementation coming soon

Contributing #

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.

For contribution details, please read this document.

License #

This work is dual-licensed under MIT and MPL-2.0. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR MPL-2.0

1
likes
130
pub points
50%
popularity

Publisher

unverified uploader

Flutter IBANTools is Flutter/Dart library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable

More

Packages that depend on flutter_iban_tools