isMongoId property
bool
get
isMongoId
Check if the string is a valid hex-encoded representation of a MongoDB ObjectId
Implementation
bool get isMongoId => (isHexadecimal && length == 24);
Check if the string is a valid hex-encoded representation of a MongoDB ObjectId
bool get isMongoId => (isHexadecimal && length == 24);