superprinter_compat library

superprinter_flutter's API on sPrint: the classes and calls SuperDepot (and any other host of package:superprinter_flutter) uses, with the same names, fields, defaults and JSON, printing through sPrint. Swap the import

import 'package:superprinter_flutter/superprinter_flutter.dart';
// becomes
import 'package:sprint_flutter/superprinter_compat.dart';

and the host's code keeps compiling and working; the printers it saved stay where they were (the same SharedPreferences key). Behaviour differences are listed in docs/MIGRATING-FROM-SUPERPRINTER-FLUTTER.md.

Classes

DiscoveredPrinter
A printer discovery found.
LabelJob
A native label (version 1): superprinter_flutter's LabelJob over the JSON both engines read. Elements stay their wire maps.
LocalPrinting
superprinter_flutter's LocalPrinting on sPrint: one door to printing, discovery and identification. Jobs to one printer run one at a time.
PrintCapabilities
What the device can print with.
PrinterIdentity
What identification worked out, and from what.
PrinterLanguage
PrinterRegistry
superprinter_flutter's PrinterRegistry: the configured printers, kept in SharedPreferences under the same key (saved printers carry over), handed to LocalPrinting on every change.
PrinterTransport
PrintResult
The outcome of one job; never thrown.
TargetPrinter
One configured printer, superprinter_flutter's shape and defaults.

Enums

FailReason
Machine-readable failure category (odep-dart FailReason).
JobStatus
Job ack status (odep-dart JobStatus).

Functions

languageFamily(String lang) → String
The language family a protocol belongs to (the same status reply).