BaseStyle class

基础样式属性

Implementers
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

BaseStyle(Format format)
JsonSerializable不能使用私有构造
BaseStyle.fromJson(Map<String, dynamic> json)
factory

Properties

format Format
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlign(Align align) BaseStyle
设置之后打印内容整体的对齐方式
setHeight(int height) BaseStyle
设置打印区域高
setPosX(int offset) BaseStyle
设置打印区域坐标位置
setPosY(int offset) BaseStyle
设置打印区域坐标位置
setRenderColor(RenderColor renderColor) BaseStyle
设置打印颜色
setWidth(int width) BaseStyle
设置打印区域宽
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

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