iban
1.2.0, released 3 weeks ago by an unverified publisher
A validation library for official and unofficial IBANs.
WASM-ready
What it does
It validates International Bank Account Numbers (IBANs) from the official registry and supports some unofficial ones. It also formats IBANs into standard electronic or print-friendly formats.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to validate bank account IBAN inputs in your app forms.
- You need to format IBANs into electronic or print-friendly layouts.
Skip it when
- You need broader payment gateway integration or processing rather than simple string validation.
Strengths
- Supports a wide range of official and unofficial country specifications.
- Provides sanitization and formatting utilities out of the box.
Weaknesses
- Limited to IBAN validation and formatting tasks only.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:iban/iban.dart';
void main() {
final iban = 'at61 1904 3002 3457 3201';
if (isValid(iban)) {
print('$iban is a valid iban');
} else {
print('$iban is not a valid iban');
}
}Alternatives
Packages that do the same job and could replace iban.
- best_form_validator
Zero-initialization form field validators for Flutter with 52 countries and 25 languages.
72Compare - validators
String validation and sanitization library for Dart
50Compare