isValidOid function
Test if the given value is a valid OID.
Note: for performance reason, it does only the basic check.
ignoreLengthwhether to checkvalue.lengthis the same as oidLength.
Implementation
bool isValidOid(String value, {bool ignoreLength = false})
=> (ignoreLength || value.length == oidLength) && _reOid.hasMatch(value);