fintech_card_core library
Classes
- ApduCommand
- Represents an ISO 7816-4 APDU (Application Protocol Data Unit) command.
- ApduResponse
- Parsed ISO 7816-4 APDU response.
- CardBrandBadge
- Developer-defined brand mark shown in SmartCardInput when the typed PAN starts with prefix.
- CardCvMode
- Processing mode bitmask (mirrors CARDCV_MODE_*).
- CardData
- Immutable value object representing all data read from a payment card.
- CardOcrBackend
- Pluggable native card OCR backend (MethodChannel, FFI, …).
- CardOcrEngineResult
- Structured result from a native card OCR engine (CardScan SSD, etc.).
- CardReaderController
- Default production implementation of ICardReaderController.
- CardReaderErrorState
- An error occurred; exception carries the structured error detail.
- CardReaderIdleState
- The controller is idle and not actively reading.
- CardReaderScanningState
- An active scan is in progress on mode.
- CardReaderState
- Sealed state hierarchy for the CardReaderController state machine.
- CardReaderSuccessState
- A card was read successfully; data contains the extracted card info.
- CardScanCardOcrBackend
-
CardScan SSD OCR via
fintech_card_core/ocrMethodChannel. - CardScannerOverlay
- A full-screen camera overlay for OCR card scanning.
- CardScannerOverlayTheme
- Corner-frame visual styling for CardScannerOverlay.
- EmvParser
- Parses raw EMV TLV byte streams and extracts card data fields.
- EmvTags
- EMV TLV tag constants (ISO 7816-4 / EMV Book 3).
- FrameConsensusBuffer
- Phase 3 — Multi-frame consensus buffer (positional voting).
- FramePreprocessor
- Owns the pre-processing worker isolate and serialises frame requests.
- ICardReaderController
- Central "motor" of the fintech_card_core package.
- INfcReader
- Contract for the NFC hardware bridge.
- IOcrScanner
- Contract for the camera-based OCR card scanner.
- Luhn
- Luhn (mod-10) checksum for payment-card PANs.
- NfcBridge
- Low-level Dart ↔ Native bridge for NFC operations.
- NfcCardReader
- Implements the full EMV card-reading flow over NFC.
- NfcScanDialog
- A pre-built bottom-sheet dialog that drives an NFC card scan.
- NfcScanDialogTheme
- Visual and textual customisation for NfcScanDialog.
- OcrCardScanner
- Camera-based OCR card scanner — CardScan SSD pipeline.
- OcrParser
- Extracts payment card fields from raw OCR text output.
- OcrResultAccumulator
- Cross-frame voting for OCR PAN / expiry with PAN-first completion.
- OcrRoi
- Maps the on-screen ISO-7810 card-frame guide to a normalized ROI in camera-image coordinates (0–1), matching the overlay's BoxFit.cover preview layout.
- PanHeuristics
- Phase 4 — Heuristics & auto-correction engine.
- PartialOcrResult
- Partial fields extracted from a single OCR frame.
- PreprocessedFrame
- A perspective-corrected, contrast-normalised card image (8-bit grayscale).
- SmartCardInput
- An optional pre-built manual-entry form for payment card data.
- SmartCardInputStyle
- Visual and textual customization for SmartCardInput.
- TlvObject
- A single TLV (Tag-Length-Value) node in an EMV data object.
Enums
- CardInputScheme
- Declares which card networks SmartCardInput should accept and how it should format and validate card data.
- CardReaderErrorCode
- Machine-readable error codes emitted by the card-reader engine.
- CardReadMode
- How the card data was acquired.
- CardScannerOverlayStatus
- The current visual phase of CardScannerOverlay.
- CardType
- Payment network detected from the BIN (Bank Identification Number).
- NfcScanDialogStatus
- The current visual state of NfcScanDialog.
Exceptions / Errors
- CardReaderException
- Structured exception thrown by all card-reader operations.