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

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.