MethodChannelTicketBridge class

An implementation of TicketBridgePlatform that uses method channels.

Inheritance

Constructors

MethodChannelTicketBridge()

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

controlPeripheral(int fd, int addr, int peripheral, int duration) Future<int>
控制外设
override
cut(int fd, int addr, int type, int size, int timeout) Future<int>
切票
override
feed(int fd, int addr, int direction, int size, int timeout) Future<int>
进退票
override
getAllDevicesPath() Future<List<String>>
获取系统中所有串口设备路径
override
getAllSerialDevices() Future<List<String>>
获取系统中所有串口设备
override
getModuleStatus(int fd, int addr, int query) Future<int>
查询出票模块状态
override
getPlatformVersion() Future<String?>
获取平台版本
override
getSdkVersion() Future<String>
获取SDK版本
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openPort(String devPath, int baudRate) Future<int>
打开串口
override
readConfigData(int fd, int addr, int key) Future<int>
读非易失型设备参数
override
readPort(int fd, int len) Future<Uint8List>
接收数据
override
releasePort(int fd) Future<int>
关闭串口
override
resetKnife(int fd, int addr) Future<int>
重置刀头
override
resetPaperJam(int fd, int addr) Future<int>
重置卡纸
override
toString() String
A string representation of this object.
inherited
writeConfigData(int fd, int addr, int key, int value) Future<int>
写非易失型设备参数
override
writePort(int fd, Uint8List data, int len) Future<int>
发送数据
override

Operators

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