Mode class

See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which data can be encoded to bits in the QR code standard.

@author Sean Owen

Constructors

Mode(List<int> _characterCountBitsForVersions, int _bits, String _modeString)
const

Properties

bits int
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCharacterCountBits(Version version) int
@param version version in question @return number of bits used, in this QR Code symbol Version, to encode the count of characters that will follow encoded in this Mode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

forBits(int bits) Mode
@param bits four bits encoding a QR Code data mode @return Mode encoded by these bits @throws IllegalArgumentException if bits do not correspond to a known mode

Constants

alphanumeric → const Mode
byte → const Mode
eci → const Mode
fnc1FirstPosition → const Mode
fnc1SecondPosition → const Mode
hanzi → const Mode
See GBT 18284-2000; "Hanzi" is a transliteration of this mode name.
kanji → const Mode
numeric → const Mode
structuredAppend → const Mode
terminator → const Mode
values → const List<Mode?>