LabelStyle class

Inheritance

Constructors

LabelStyle(LabelFormat labelFormat, Format format)
LabelStyle.fromJson(Map<String, dynamic> json)
factory

Properties

format Format
finalinherited
hashCode int
The hash code for this object.
no setterinherited
labelFormat LabelFormat
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enableBack(bool enable) LabelStyle
标签回退开关
enableMirror(bool enable) LabelStyle
标签镜像开关
enableReverse(bool enable) LabelStyle
标签反向开关
enableTear(bool enable) LabelStyle
标签进纸开关
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlign(Align align) LabelStyle
设置之后打印内容整体的对齐方式
override
setHeight(int height) LabelStyle
设置打印区域高
override
setPosX(int offset) LabelStyle
设置打印区域坐标位置
override
setPosY(int offset) LabelStyle
设置打印区域坐标位置
override
setRenderColor(RenderColor renderColor) LabelStyle
设置打印颜色
override
setWidth(int width) LabelStyle
设置打印区域宽
override
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getStyle() LabelStyle
返回当前设置的样式属性对象
override