validate method
Validates a gs1 code. If type unknown validation is always false. There is no way how to validate if the type is unknown.
Implementation
bool validate(String gs1, GS1Type type) {
switch (type) {
case GS1Type.giai:
return _validateGIAI(gs1);
default:
return false;
}
}