BrotherNativePrintPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • BrotherNativePrintPlatform
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusStream Stream<PrinterStatus>
no setter

Methods

cancelPrinting() Future<void>
Asks the SDK to abort any in-flight print, releasing the channel for a new attempt. Safe to call while a print is stuck.
connect(BrotherPrinter printer) Future<bool>
disconnect() Future<void>
discoverPrinters({required Set<BrotherConnectionType> connectionTypes, Duration timeout = const Duration(seconds: 10)}) Future<List<BrotherPrinter>>
discoverPrintersStream({required Set<BrotherConnectionType> connectionTypes, Duration timeout = const Duration(seconds: 10)}) Stream<BrotherPrinter>
Starts discovery and yields each printer as soon as it is found.
getConnectedPrinter() Future<BrotherPrinter?>
Returns the printer currently connected, or null when none.
getPrinterStatus() Future<PrinterHardwareStatus?>
Queries the hardware status of the currently connected printer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printImage(Uint8List imageBytes, PrintOptions options) Future<PrintResult>
printPdf(Uint8List pdfBytes, PrintOptions options) Future<PrintResult>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance BrotherNativePrintPlatform
getter/setter pair