MethodChannelBrotherNativePrint class
- Inheritance
-
- Object
- PlatformInterface
- BrotherNativePrintPlatform
- MethodChannelBrotherNativePrint
Constructors
Properties
- eventChannel → EventChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusStream
→ Stream<
PrinterStatus> -
no setteroverride
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.
override
-
connect(
BrotherPrinter printer) → Future< bool> -
override
-
disconnect(
) → Future< void> -
override
-
discoverPrinters(
{required Set< BrotherConnectionType> connectionTypes, Duration timeout = const Duration(seconds: 10)}) → Future<List< BrotherPrinter> > -
override
-
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.
override
-
getConnectedPrinter(
) → Future< BrotherPrinter?> -
Returns the printer currently connected, or
nullwhen none.override -
getPrinterStatus(
) → Future< PrinterHardwareStatus?> -
Queries the hardware status of the currently connected printer.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printImage(
Uint8List imageBytes, PrintOptions options) → Future< PrintResult> -
override
-
printPdf(
Uint8List pdfBytes, PrintOptions options) → Future< PrintResult> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited