PrintElement class

Annotations
  • @JsonSerializable()

Constructors

PrintElement.new({String? text, String? leftText, String? centerText, String? rightText, Uint8List? bitmap, FontSize? textSize, Align? align, bool? isBold, bool? isItalic, bool? isUnderline, bool? isStrikeout})
PrintElement.fromJson(Map<String, dynamic> json)
factory

Properties

align Align?
对齐方式
getter/setter pair
bitmap Uint8List?
打印的图片内容
getter/setter pair
centerText String?
打印的居中文字内容
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isBold bool?
是否加粗
getter/setter pair
isItalic bool?
是否斜体
getter/setter pair
isStrikeout bool?
是否增加删除线
getter/setter pair
isUnderline bool?
是否增加下划线
getter/setter pair
leftText String?
打印的居左文字内容
getter/setter pair
rightText String?
打印的居右文字内容
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
打印的文字内容
getter/setter pair
textSize FontSize?
打印字体大小
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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