isValidOid function

bool isValidOid(
  1. String value, {
  2. bool ignoreLength = false,
})

Test if the given value is a valid OID.

Note: for performance reason, it does only the basic check.

  • ignoreLength whether to check value.length is the same as oidLength.

Implementation

bool isValidOid(String value, {bool ignoreLength = false})
=> (ignoreLength || value.length == oidLength) && _reOid.hasMatch(value);