MethodChannelFlutterSunmiPrinterOld class
An implementation of FlutterSunmiPrinterOldPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterSunmiPrinterOldPlatform
- MethodChannelFlutterSunmiPrinterOld
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
boldOff(
) → Future< void> -
Turn bold off
override
-
boldOn(
) → Future< void> -
Turn bold on
override
-
emptyLines(
int n) → Future< void> -
Print empty lines
override
-
getPlatformVersion(
) → Future< String?> -
override
-
isPrinting(
) → Future< bool> -
Check if printer is printing
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printImage(
{required String base64, int align = 0}) → Future< void> -
Print image
override
-
printRow(
{required String cols, bool bold = false, bool underline = false, int textSize = 24, int linesAfter = 0}) → Future< void> -
Print row
override
-
printText(
{required String text, int align = 0, bool bold = false, bool underline = false, int linesAfter = 0, int size = 24}) → Future< void> -
Print text
override
-
reset(
) → Future< void> -
Reset printer
override
-
startPrint(
) → Future< void> -
Start printing
override
-
stopPrint(
) → Future< void> -
Stop printing
override
-
toString(
) → String -
A string representation of this object.
inherited
-
underlineOff(
) → Future< void> -
Turn underline off
override
-
underlineOn(
) → Future< void> -
Turn underline on
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited