BarCodeType enum

一维码类型

Inheritance

Constructors

BarCodeType()
const

Values

UPC_A → const BarCodeType

要求12位数字(最后⼀位校验位)

UPC_E → const BarCodeType

要求8位数字(最后⼀位校验位)

JAN13_EAN13 → const BarCodeType

JAN13_EAN13

JAN8_EAN8 → const BarCodeType

JAN8_EAN8

CODE39 → const BarCodeType

最⻓打印13个数字

ITF → const BarCodeType

要求输⼊数字,且有效⼩于14位,必须是偶数位

CODABAR → const BarCodeType

要求0-9及6个特殊字符,最⻓打印18个数字

CODE93 → const BarCodeType

最⻓打印17个数字

CODE128 → const BarCodeType

Code128分三类:

  • A类:包含⼤写字⺟、数字、标点等;
  • B类:⼤⼩写字⺟,数字;
  • C类:纯数字,复数字符,若为单数位,最后⼀个将忽略;

接⼝默认使⽤B类编码,若要使⽤A类、C类编码需在内容前⾯加“{A”、“{C”,例 如:“{A2344A”,”{C123123”,”{A1A{B13B{C12”。

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<BarCodeType>
A constant List of the values in this enum, in order of their declaration.