LddPrinter class abstract
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether the underlying
Arc
is disposed.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
align(
{required LddAlignment alignment}) → Future< void> - 将文本向左、向右或居中对齐。
-
barcode(
{required FutureOr< DartBarcodeBuilder> funCall()}) → Future<void> - 构建条形码
-
bold(
{required bool enabled}) → Future< void> - 将文本的重点设置为粗体。
-
cut(
) → Future< void> - 对纸张执行完整的剪切。
-
dispose(
) → void -
Dispose the underlying
Arc
.inherited -
doublestrike(
{required bool enabled}) → Future< void> - 对文本应用双击效果。
-
feed(
{required int n}) → Future< void> - 送入n行纸张。
-
flip(
{required bool enabled}) → Future< void> - 将文本颠倒过来。
-
flush(
) → Future< void> - 推送
-
font(
{required LddFont font}) → Future< void> - 将字体设置为样式“a”、“b”或“c”。
-
graphic(
{required FutureOr< DartGraphicBuilder> funCall()}) → Future<void> - 打印图形
-
init(
) → Future< void> - 初始化打印机。
-
left(
{required int dots}) → Future< void> - 将左间隔设置为n个点。
-
linespacing(
{required int height}) → Future< void> - 调整文本行间距。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
partialCut(
) → Future< void> - 对纸张执行部分剪切。
-
print(
{required String text}) → Future< void> - 打印指定的文本。
-
println(
{required String text}) → Future< void> - 打印以新行结尾的指定文本。
-
qr(
{required FutureOr< DartQrBuilder> funCall()}) → Future<void> - 构建二维码
-
reset(
) → Future< void> - 将打印机重置为默认设置。
-
resetLinespacing(
) → Future< void> - 将行距重置为默认值。
-
resetTextSize(
) → Future< void> - 重置文本的字体大小。
-
reverseColours(
{required bool enabled}) → Future< void> - 启用黑色背景上的白色文本。
-
reverseFeed(
{required int n}) → Future< void> - 将进纸反转n行。
-
text(
{required String text}) → Future< void> - 与println相同,打印以新行结尾的指定文本。
-
textSize(
{required int widthMultiplier, required int heightMultiplier}) → Future< void> - 设置文本的字体大小。
-
toString(
) → String -
A string representation of this object.
inherited
-
underline(
{required LddUnderlineMode mode}) → Future< void> - 用单笔或双笔在文本下划线。
-
width(
{required int margin}) → Future< void> - 设置可打印区域的宽度。
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited