Nf5503ScanDecodeMode enum

扫码数据编码模式,对应原生 ScanConfig.SCAN_ENCODE_MODE_* 常量。

Inheritance
Available extensions

Values

utf8 → const Nf5503ScanDecodeMode

UTF-8 编码。

const Nf5503ScanDecodeMode(0)
ascii → const Nf5503ScanDecodeMode

ASCII 编码。

const Nf5503ScanDecodeMode(1)
gbk → const Nf5503ScanDecodeMode

GBK 编码。

const Nf5503ScanDecodeMode(2)
gb2312 → const Nf5503ScanDecodeMode

GB2312 编码。

const Nf5503ScanDecodeMode(3)
gb18030 → const Nf5503ScanDecodeMode

GB18030 编码。

const Nf5503ScanDecodeMode(4)
utf16 → const Nf5503ScanDecodeMode

UTF-16 编码。

const Nf5503ScanDecodeMode(5)
iso88591 → const Nf5503ScanDecodeMode

ISO-8859-1 编码。

const Nf5503ScanDecodeMode(6)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
原生 SDK 使用的整数值。
final

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

Static Methods

fromValue(int value) Nf5503ScanDecodeMode
根据原生 SDK 返回值转换为 Flutter 枚举,未知值默认按 UTF-8 处理。

Constants

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