QrStyle class

二维码样式属性

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

QrStyle(QrFormat qrFormat)
JsonSerializable不能使用私有构造QrStyle._(this.qrFormat);
QrStyle.fromJson(Map<String, dynamic> json)
factory

Properties

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

Methods

format() QrFormat
返回 QrFormat 对象
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlign(Align align) QrStyle
指定条码相对坐标的对齐位置
setDot(int size) QrStyle
设置条码生成块大小
setErrorLevel(ErrorLevel level) QrStyle
设置条码的纠错等级
setHeight(int height) QrStyle
设置自定义高度
setPosX(int offset) QrStyle
设置二维码内容的 x 坐标
setPosY(int offset) QrStyle
设置二维码内容的 y 坐标
setRotate(Rotate rotate) QrStyle
指定旋转方向
setWidth(int width) QrStyle
设置自定义宽度
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() QrStyle
返回当前样式属性对象