boleto_utils
1.2.0, released 3 months ago by an unverified publisher
Validate, read, and interpret Brazilian bank and collection boletos (barcodes and digitizable lines).
WASM-readyUnverified publisher
What it does
Provides utility methods to validate Brazilian boletos, identify issuing banks, convert barcodes to digitizable lines and vice versa, extract due dates and amounts, and calculate check digits (Mod10 and Mod11).
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building financial apps, ERPs, or payment gateways that need to process Brazilian boletos.
- Validating boleto barcodes or digitizable lines and calculating Mod10/Mod11 check digits.
- Extracting metadata like bank information, due dates, and amounts from boletos.
Skip it when
- Your application does not deal with Brazilian payment slips or FEBRABAN standards.
- You need to natively generate PDF representations of boletos rather than parse them.
Strengths
- Comprehensive validation and parsing for both bank boletos and collection/utility bills (arrecadação).
- Supports the updated 2025 due date factor defined by FEBRABAN.
- Extracts issuer details including bank name, code, and ISPB.
Weaknesses
- Due date extraction is not possible for collection/utility boletos (arrecadação) due to their inherent structure.
- Limited strictly to the Brazilian banking standard (FEBRABAN).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:boleto_utils/boleto_utils.dart';
void main() {
final codigo = '34191790010104351004791020150008291070000005000';
final boleto = BoletoUtils();
final tipo = boleto.identificarTipoBoleto(codigo);
final valor = boleto.identificarValor(codigo);
final vencimento = boleto.identificarData(
codigo: codigo,
tipoCodigo: TipoCodigo.codigoDeBarras,
);
print('Tipo: $tipo');
print('Valor: R\$ ${valor.toStringAsFixed(2)}');
print('Vencimento: $vencimento');
}