validator library
Functions
-
isValidGTIN(
List< int> inputGTIN) → bool - This function are lightweight (or fast). It receives an Integer List, and compute all math necessary to validate GTIN. Use if your gtin are always in same format.
-
parseAndValidate(
dynamic gtin) → bool -
This function parses
String
toList<Int>
before callisValidGTIN()
and then return if GTIN is valid. rembenbertry {} catch (e) {}
this function could also throw Exceptions.