nitro_printing library
Classes
- DiscoveredPrinter
-
NitroErr<
T extends Object?> - Failure case — carries the native-side error message.
-
NitroOk<
T extends Object?> - Success case — carries the native return value.
- NitroPrinting
- NitroPrintSettingsPage
- A full-screen Material 3 print-settings editor.
-
NitroResultValue<
T extends Object?> -
Discriminated success/error result for native methods annotated with
@NitroResult(). - PreviewResult
- PrintDialogController
- Dart-side controller for orchestrating the OS print dialog flow.
- PrintDialogResult
- PrintDocument
- PrinterCapabilities
- PrinterInfo
- PrinterStatus
- PrinterStatusDetail
- PrintJob
- PrintJobUpdate
- PrintOutcomeConfirmation
- Native platforms report real print outcomes — there is nothing to settle.
- PrintResult
- PrintSettings
- WebPrintAgent
- The QZ Tray agent transport is web-only; native platforms print directly.
- WebPrintDecor
Enums
- DialogOutcomeGuess
- A heuristic reading of the dialog-open time — NOT a fact:
- DocumentType
- MediaType
- PaperSize
- PrintDialogState
- PrintErrorCode
- Machine-readable print failure categories.
- PrintJobFailureReason
- Why a print job ended unsuccessfully — surfaced from IPP printer-state-reasons (paper out, jam, …) where the platform reports them.
- PrintOutcome
- What actually happened to a print, beyond bare success/failure — because "success" is not one thing:
- PrintQuality
- PrintState
Extensions
- DiscoveredPrinterRecordExt on DiscoveredPrinter
- DocumentTypeFromNativeExt on int
- DocumentTypeNativeExt on DocumentType
- MediaTypeFromNativeExt on int
- MediaTypeNativeExt on MediaType
- NitroPrintingJobsX on NitroPrinting
- PaperSizeFromNativeExt on int
- PaperSizeNativeExt on PaperSize
- PrintDialogResultRecordExt on PrintDialogResult
- PrintDialogStateFromNativeExt on int
- PrintDialogStateNativeExt on PrintDialogState
- PrintDocumentRecordExt on PrintDocument
- PrinterCapabilitiesRecordExt on PrinterCapabilities
- PrinterInfoRecordExt on PrinterInfo
- PrinterStatusDetailRecordExt on PrinterStatusDetail
- PrinterStatusRecordExt on PrinterStatus
- PrintJobFailureCatalog on PrintJob
- PrintJobRecordExt on PrintJob
- PrintJobUpdateRecordExt on PrintJobUpdate
- PrintQualityFromNativeExt on int
- PrintQualityNativeExt on PrintQuality
- PrintResultErrorCatalog on PrintResult
- PrintResultRecordExt on PrintResult
- PrintSettingsCopyWith on PrintSettings
- PrintSettingsRecordExt on PrintSettings
- PrintStateFromNativeExt on int
- PrintStateNativeExt on PrintState
Constants
- kDialogOutcomeUnknown → const String
- Informational code on successful dialog prints: the browser closed its print dialog but deliberately never reveals Print vs Cancel.
Functions
-
ensureNitroPrintingReady(
{String? jsUrl}) → Future< void> -
No-op on native (the dynamic library loads synchronously). On web this
resolves to the WASM module loader and MUST be awaited before
createNitroPrintingInstance.