CodeFormatUtils extension
Static Methods
-
getAsProperties(List<CodeFormat> codeFormats, {bool enabled = true})
→ Map<String, dynamic>
-
Returns a Map of Honeywell's Barcode formats properties according to the
List of CodeFormat specified and the
enabled
value which is true by default.
codeFormats
the List of CodeFormat enums to be converted to Honeywell properties
enabled
the value to be set to the format property, true or false
-
getAsPropertiesComplement(List<CodeFormat> codeFormats, {bool enabled = true})
→ Map<String, dynamic>
-
Returns a Map of Honeywell's Barcode formats properties according to the
List of CodeFormat specified and the
enabled
value which is true by default.
This function is useful when you want to enable some codeFormats and
disable the rest and the other way around.
codeFormats
the List of CodeFormat enums to be converted to Honeywell properties
enabled
the value to be set to the format property, true or false.
IMPORTANT:
-
valueOf(String name)
→ CodeFormat?
-